mirror of https://github.com/Nofated095/Q2TG.git
fix: 在 QQ 撤回消息时 pair 为 undefined
This commit is contained in:
parent
c9af8ecc20
commit
ca13bafb96
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue