temp save

This commit is contained in:
linyuchen
2024-02-22 22:55:52 +08:00
parent 688624500f
commit b27dadbbca
2 changed files with 17 additions and 4 deletions

View File

@@ -18,7 +18,8 @@ export enum ReceiveCmd {
GROUPS = "nodeIKernelGroupListener/onGroupListUpdate",
GROUPS_UNIX = "onGroupListUpdate",
FRIENDS = "onBuddyListChange",
MEDIA_DOWNLOAD_COMPLETE = "nodeIKernelMsgListener/onRichMediaDownloadComplete"
MEDIA_DOWNLOAD_COMPLETE = "nodeIKernelMsgListener/onRichMediaDownloadComplete",
UNREAD_GROUP_NOTICE = "nodeIKernelGroupListener/onGroupNotifiesUnreadCountUpdated"
}
interface NTQQApiReturnData<PayloadType = unknown> extends Array<any> {
@@ -251,3 +252,10 @@ registerReceiveHook<{ msgRecord: RawMessage }>(ReceiveCmd.SELF_SEND_MSG, ({msgRe
}
}
})
registerReceiveHook<{"doubt": boolean,"oldestUnreadSeq": string,"unreadCount": number}>(ReceiveCmd.UNREAD_GROUP_NOTICE, (payload)=>{
log("收到群通知", payload);
if (payload.unreadCount){
}
})