chore: clearGroupNotifiesUnreadCount

This commit is contained in:
手瓜一十雪 2024-08-28 18:01:32 +08:00
parent 03a298a70f
commit bd1751903e
3 changed files with 5 additions and 1 deletions

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);
}

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,

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,