refactor: chattype

This commit is contained in:
手瓜一十雪 committed 2024-08-22 15:53:27 +08:00
1 parent 90dddd10a9
commit e086b8707f
21 files changed
+44 -53

No files matched your search

+3 -3
View File
@@ -152,11 +152,11 @@ export function rawMessageToText(msg: RawMessage, recursiveLevel = 0): string {
const tokens: string[] = [];
if (msg.chatType == ChatType.friend) {
if (msg.chatType == ChatType.KCHATTYPEC2C) {
tokens.push(`私聊 (${msg.peerUin})`);
} else if (msg.chatType == ChatType.group) {
} else if (msg.chatType == ChatType.KCHATTYPEGROUP) {
tokens.push(`群聊 (群 ${msg.peerUin} 的 ${msg.senderUin})`);
} else if (msg.chatType == ChatType.chatDevice) {
} else if (msg.chatType == ChatType.KCHATTYPEDATALINE) {
tokens.push('移动设备');
} else /* temp */ {
tokens.push(`临时消息 (${msg.peerUin})`);