mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: report self
This commit is contained in:
@@ -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;
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user