update: move to recallMsg(V2)

This commit is contained in:
Wesley F. Young committed 2024-09-07 23:28:35 +08:00
1 parent 137608c3d2
commit 6d2d6b521b
2 files changed
+2 -17

No files matched your search

+1 -8
View File
@@ -157,14 +157,7 @@ export class NTQQMsgApi {
return this.context.session.getMsgService().getMsgsIncludeSelf(peer, msgId, count, isReverseOrder);
}
async recallMsg(peer: Peer, msgIds: string[]) {
await this.context.session.getMsgService().recallMsg({
chatType: peer.chatType,
peerUid: peer.peerUid,
}, msgIds);
}
async recallMsgV2(peer: Peer, msgId: string) {
async recallMsg(peer: Peer, msgId: string) {
await this.core.eventWrapper.callNormalEventV2(
'NodeIKernelMsgService/recallMsg',
'NodeIKernelMsgListener/onMsgInfoListUpdate',