refactor: chattype

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

No files matched your search

+2 -2
View File
@@ -24,9 +24,9 @@ class ForwardSingleMsg extends BaseAction<Payload, null> {
if (!peerUid) {
throw new Error(`无法找到私聊对象${payload.user_id}`);
}
return { chatType: ChatType.friend, peerUid };
return { chatType: ChatType.KCHATTYPEC2C, peerUid };
}
return { chatType: ChatType.group, peerUid: payload.group_id!.toString() };
return { chatType: ChatType.KCHATTYPEGROUP, peerUid: payload.group_id!.toString() };
}
async _handle(payload: Payload): Promise<null> {