chore: clearGroupNotifiesUnreadCount

This commit is contained in:
手瓜一十雪 committed 2024-08-28 18:01:32 +08:00
1 parent dfc09334db
commit 134ff3cb44
3 files changed
+5 -1

No files matched your search

+3
View File
@@ -33,6 +33,9 @@ export class NTQQGroupApi {
}
this.context.logger.logDebug(`加载${this.groups.length}个群组缓存完成`);
}
async clearGroupNotifiesUnreadCount(){
return this.context.session.getGroupService().clearGroupNotifiesUnreadCount(true);
}
async setGroupAvatar(gc: string, filePath: string) {
return this.context.session.getGroupService().setHeader(gc, filePath);
}
+1 -1
View File
@@ -189,7 +189,7 @@ export interface NodeIKernelGroupService {
getGroupNotifiesUnreadCount(unknown: boolean): Promise<GeneralCallResult>;
clearGroupNotifiesUnreadCount(groupCode: string): void;
clearGroupNotifiesUnreadCount(unknown: boolean): void;
operateSysNotify(
doubt: boolean,
+1
View File
@@ -370,6 +370,7 @@ export class NapCatOneBot11Adapter {
groupListener.onGroupNotifiesUpdated = async (_, notifies) => {
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
//await this.core.apis.GroupApi.getGroupNotifiesUnreadCount();
if (![
GroupNotifyMsgType.SET_ADMIN,
GroupNotifyMsgType.CANCEL_ADMIN_NOTIFY_CANCELED,