mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
chore: clearGroupNotifiesUnreadCount
This commit is contained in:
parent
03a298a70f
commit
bd1751903e
@ -33,6 +33,9 @@ export class NTQQGroupApi {
|
|||||||
}
|
}
|
||||||
this.context.logger.logDebug(`加载${this.groups.length}个群组缓存完成`);
|
this.context.logger.logDebug(`加载${this.groups.length}个群组缓存完成`);
|
||||||
}
|
}
|
||||||
|
async clearGroupNotifiesUnreadCount(){
|
||||||
|
return this.context.session.getGroupService().clearGroupNotifiesUnreadCount(true);
|
||||||
|
}
|
||||||
async setGroupAvatar(gc: string, filePath: string) {
|
async setGroupAvatar(gc: string, filePath: string) {
|
||||||
return this.context.session.getGroupService().setHeader(gc, filePath);
|
return this.context.session.getGroupService().setHeader(gc, filePath);
|
||||||
}
|
}
|
||||||
|
@ -189,7 +189,7 @@ export interface NodeIKernelGroupService {
|
|||||||
|
|
||||||
getGroupNotifiesUnreadCount(unknown: boolean): Promise<GeneralCallResult>;
|
getGroupNotifiesUnreadCount(unknown: boolean): Promise<GeneralCallResult>;
|
||||||
|
|
||||||
clearGroupNotifiesUnreadCount(groupCode: string): void;
|
clearGroupNotifiesUnreadCount(unknown: boolean): void;
|
||||||
|
|
||||||
operateSysNotify(
|
operateSysNotify(
|
||||||
doubt: boolean,
|
doubt: boolean,
|
||||||
|
@ -370,6 +370,7 @@ export class NapCatOneBot11Adapter {
|
|||||||
|
|
||||||
groupListener.onGroupNotifiesUpdated = async (_, notifies) => {
|
groupListener.onGroupNotifiesUpdated = async (_, notifies) => {
|
||||||
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
|
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
|
||||||
|
//await this.core.apis.GroupApi.getGroupNotifiesUnreadCount();
|
||||||
if (![
|
if (![
|
||||||
GroupNotifyMsgType.SET_ADMIN,
|
GroupNotifyMsgType.SET_ADMIN,
|
||||||
GroupNotifyMsgType.CANCEL_ADMIN_NOTIFY_CANCELED,
|
GroupNotifyMsgType.CANCEL_ADMIN_NOTIFY_CANCELED,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user