fix: 撤回SEQ

This commit is contained in:
Alen
2024-09-28 20:58:09 +08:00
parent d181e24e00
commit 4aac1db855
2 changed files with 15 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ export class NapCatOneBot11Adapter {
//跳过 4字节 群号 + 不知道的1字节 +2字节 长度
let uid = RecallData.readUint32BE();
const buffer = Buffer.from(RecallData.toString('hex').slice(14), 'hex');
let seq: number = (RecallGroup.decode(buffer) as any).msgSeq;
let seq: number = (RecallGroup.decode(buffer) as any).recallDetails.subDetail.msgSeq;
let peer: Peer = { chatType: ChatType.KCHATTYPEGROUP, peerUid: uid.toString() };
context.logger.log("[Native] 群消息撤回 Peer: " + uid.toString() + " / MsgSeq:" + seq);
let msgs = await core.apis.MsgApi.queryMsgsWithFilterExWithSeq(peer, seq.toString());