refactor: sendMsg

This commit is contained in:
手瓜一十雪
2024-07-23 09:45:00 +08:00
parent 1ef7b867e7
commit f3cbb8ce19
2 changed files with 3 additions and 2 deletions

View File

@@ -172,10 +172,11 @@ export class NTQQMsgApi {
let data = await NTEventDispatch.CallNormalEvent<(msgId: string, peer: Peer, msgElements: SendMessageElement[], map: Map<any, any>) => Promise<unknown>, (msgList: RawMessage[]) => void>(
'NodeIKernelMsgService/sendMsg',
'NodeIKernelMsgListener/onMsgInfoListUpdate',
timeout,
1,
5000,
(msgRecords: RawMessage[]) => {
for (let msgRecord of msgRecords) {
//console.log(msgRecord);
if (msgRecord.msgId === msgId && msgRecord.sendStatus === 2) {
return true;
}