fix: 在 QQ 撤回消息时 pair 为 undefined

This commit is contained in:
Clansty 2022-03-07 21:34:46 +08:00
parent c9af8ecc20
commit ca13bafb96
No known key found for this signature in database
GPG Key ID: 05F8479BA63A8E92
1 changed files with 2 additions and 0 deletions

View File

@ -41,11 +41,13 @@ export default class DeleteMessageController {
private onQqFriendRecall = async (event: FriendRecallEvent) => {
const pair = this.instance.forwardPairs.find(event.friend);
if (!pair) return;
await this.deleteMessageService.handleQqRecall(event, pair);
};
private onQqGroupRecall = async (event: GroupRecallEvent) => {
const pair = this.instance.forwardPairs.find(event.group);
if (!pair) return;
await this.deleteMessageService.handleQqRecall(event, pair);
};