fix: report self

This commit is contained in:
linyuchen
2024-02-06 18:29:03 +08:00
parent e545d8d1cd
commit 9411993d8a
10 changed files with 77 additions and 47 deletions

View File

@@ -1,12 +1,13 @@
import {BrowserWindow} from 'electron';
import {log} from "../common/utils";
import {getConfigUtil, log} from "../common/utils";
import {NTQQApiClass} from "./ntcall";
import {RawMessage} from "../common/types";
import {msgHistory} from "../common/data";
export enum ReceiveCmd {
UPDATE_MSG = "nodeIKernelMsgListener/onMsgInfoListUpdate",
NEW_MSG = "nodeIKernelMsgListener/onRecvMsg"
NEW_MSG = "nodeIKernelMsgListener/onRecvMsg",
SELF_SEND_MSG = "nodeIKernelMsgListener/onAddSendMsg"
}
interface NTQQApiReturnData extends Array<any> {
@@ -66,4 +67,5 @@ registerReceiveHook<{ msgList: Array<RawMessage> }>(ReceiveCmd.NEW_MSG, (payload
log("收到新消息push到历史记录", message)
msgHistory[message.msgId] = message;
}
})
})