mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
feat: 设置noify已读
This commit is contained in:
parent
bd1751903e
commit
cc85985d08
@ -33,8 +33,8 @@ export class NTQQGroupApi {
|
|||||||
}
|
}
|
||||||
this.context.logger.logDebug(`加载${this.groups.length}个群组缓存完成`);
|
this.context.logger.logDebug(`加载${this.groups.length}个群组缓存完成`);
|
||||||
}
|
}
|
||||||
async clearGroupNotifiesUnreadCount(){
|
async clearGroupNotifiesUnreadCount(unk: boolean) {
|
||||||
return this.context.session.getGroupService().clearGroupNotifiesUnreadCount(true);
|
return this.context.session.getGroupService().clearGroupNotifiesUnreadCount(unk);
|
||||||
}
|
}
|
||||||
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);
|
||||||
|
@ -370,7 +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();
|
await this.core.apis.GroupApi.clearGroupNotifiesUnreadCount(false);
|
||||||
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