update: move to recallMsg(V2)

This commit is contained in:
Wesley F. Young
2024-09-07 23:28:35 +08:00
parent 264cb6bbd2
commit 4672930037
2 changed files with 2 additions and 17 deletions

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',