feat: 设置noify已读

This commit is contained in:
手瓜一十雪
2024-08-28 18:18:40 +08:00
parent bd1751903e
commit cc85985d08
2 changed files with 4 additions and 4 deletions

View File

@@ -367,10 +367,10 @@ export class NapCatOneBot11Adapter {
private initGroupListener() {
const groupListener = new NodeIKernelGroupListener();
groupListener.onGroupNotifiesUpdated = async (_, notifies) => {
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
//await this.core.apis.GroupApi.getGroupNotifiesUnreadCount();
await this.core.apis.GroupApi.clearGroupNotifiesUnreadCount(false);
if (![
GroupNotifyMsgType.SET_ADMIN,
GroupNotifyMsgType.CANCEL_ADMIN_NOTIFY_CANCELED,