Skip to content

Commit 80a6d78

Browse files
committed
chore: improve error handling in recall event processing and enhance group member info retrieval
1 parent a3ea394 commit 80a6d78

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/ntqqapi/api/group.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ export class NTQQGroupApi extends Service {
7373
],
7474
{
7575
resultCmd: 'nodeIKernelGroupListener/onMemberInfoChange',
76+
resultCb: result=> {
77+
return result[0] === groupCode && result[2].has(uid)
78+
}
7679
},
7780
)
7881
return data[2].get(uid)!

src/onebot11/adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class OneBot11Adapter extends Service {
206206
if (recallEvent) {
207207
this.dispatch(recallEvent)
208208
}
209-
})
209+
}).catch(e => this.ctx.logger.error('handling recall events', e))
210210
}
211211

212212
private async handleFriendRequest(req: FriendRequest) {

0 commit comments

Comments
 (0)