From d1ae64ddb4ec29df7f53fa765a228cd90daaef46 Mon Sep 17 00:00:00 2001 From: Clansty Date: Fri, 12 Jan 2024 23:58:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=AF=E8=83=BD=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BA=86=20telegram=20=E4=B8=AD=E6=92=A4=E5=9B=9E=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=8F=AF=E8=83=BD=E7=9A=84=E5=81=87=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/DeleteMessageService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/DeleteMessageService.ts b/src/services/DeleteMessageService.ts index 60020d63..54d9bf06 100644 --- a/src/services/DeleteMessageService.ts +++ b/src/services/DeleteMessageService.ts @@ -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);