Skip to content

Commit

Permalink
fix: 可能修复了 telegram 中撤回消息可能的假错误提示
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Jan 12, 2024
1 parent d98d5e7 commit d1ae64d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/DeleteMessageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ export default class DeleteMessageService {
// 假如 mapQQ 是普通成员,机器人是管理员,上面撤回失败了也可以由机器人撤回
// 所以撤回两次
// 不知道哪次会成功,所以就都不发失败提示了
this.recallQqMessage(pair.qq, messageInfo.seq, Number(messageInfo.rand),
pair.qq instanceof Friend ? messageInfo.time : messageInfo.pktnum,
pair, isOthersMsg, !!mapQq);
await db.message.delete({
where: { id: messageInfo.id },
});
this.recallQqMessage(pair.qq, messageInfo.seq, Number(messageInfo.rand),
pair.qq instanceof Friend ? messageInfo.time : messageInfo.pktnum,
pair, isOthersMsg, !!mapQq);
}
catch (e) {
this.log.error(e);
Expand Down

0 comments on commit d1ae64d

Please sign in to comment.