mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix
This commit is contained in:
parent
dd34286b43
commit
709c0b6f7b
@ -89,11 +89,8 @@ export class NTQQFriendApi extends Service {
|
||||
afterFirstCmd: false,
|
||||
}
|
||||
)
|
||||
const categoryUids: Map<number, string[]> = new Map()
|
||||
for (const item of data.buddyCategory) {
|
||||
categoryUids.set(item.categoryId, item.buddyUids)
|
||||
}
|
||||
return Object.values(data.userSimpleInfos).filter(v => v.baseInfo && categoryUids.get(v.baseInfo.categoryId)?.includes(v.uid!))
|
||||
const uids = data.buddyCategory.flatMap(item => item.buddyUids)
|
||||
return Object.values(data.userSimpleInfos).filter(v => uids.includes(v.uid!))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -399,7 +399,7 @@ class OneBot11Adapter extends Service {
|
||||
this.handleRecallMsg(input)
|
||||
})
|
||||
this.ctx.on('nt/message-sent', input => {
|
||||
this.handleRecallMsg(input)
|
||||
this.handleMsg(input)
|
||||
})
|
||||
this.ctx.on('nt/group-notify', input => {
|
||||
this.handleGroupNotify(input)
|
||||
|
Loading…
x
Reference in New Issue
Block a user