feat: 多层合并完成

This commit is contained in:
手瓜一十雪 committed 2024-08-06 18:55:36 +08:00
1 parent 54325502b6
commit e39d5c4fe9
4 files changed
+21 -13

No files matched your search

+3 -1
View File
@@ -110,7 +110,9 @@ export class NTQQMsgApi {
});
return ret;
}
static async getMsgsByMsgId(peer: Peer, msgIds: string[]) {
static async getMsgsByMsgId(peer: Peer | undefined, msgIds: string[] | undefined) {
if (!peer) throw new Error('peer is not allowed');
if (!msgIds) throw new Error('msgIds is not allowed');
return await napCatCore.session.getMsgService().getMsgsByMsgId(peer, msgIds);
}
static async getSingleMsg(peer: Peer, seq: string) {