From 11177d3e13aa6906476ecfc2565a7b7d9fb8ace9 Mon Sep 17 00:00:00 2001 From: pedro-php Date: Tue, 15 Apr 2025 10:52:35 -0300 Subject: [PATCH] hotfix --- .../channel/whatsapp/whatsapp.baileys.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index c0be7407..1d7ab874 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -2249,6 +2249,8 @@ export class BaileysStartupService extends ChannelStartupService { messageSent = await this.sendMessage(sender, message, mentions, linkPreview, quoted); } + console.dir({messageSent}); + if (Long.isLong(messageSent?.messageTimestamp)) { messageSent.messageTimestamp = messageSent.messageTimestamp?.toNumber(); } @@ -3978,6 +3980,9 @@ export class BaileysStartupService extends ChannelStartupService { ...(options as any), edit: data.key, }); + + console.dir({messageUpdate: messageSent}, {depth: null}); + if (messageSent) { const editedMessage = messageSent?.message?.protocolMessage || messageSent?.message?.editedMessage?.message?.protocolMessage;