From 24c339343f0b19d8fdf9a7df209d1a716fa9050a Mon Sep 17 00:00:00 2001 From: ricael Date: Wed, 17 Sep 2025 17:41:07 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20ajustar=20a=20manipula=C3=A7=C3=A3o=20do?= =?UTF-8?q?=20remoteJid=20na=20mensagem=20do=20servi=C3=A7o=20WhatsApp=20p?= =?UTF-8?q?ara=20garantir=20a=20utiliza=C3=A7=C3=A3o=20da=20chave=20altern?= =?UTF-8?q?ativa=20quando=20dispon=C3=ADvel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../channel/whatsapp/whatsapp.baileys.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 4b1db159..ee7675ec 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1349,7 +1349,10 @@ export class BaileysStartupService extends ChannelStartupService { } } - this.logger.log(messageRaw); + if (messageRaw.key.remoteJid?.includes('@lid') && messageRaw.key.remoteJidAlt) { + messageRaw.key.remoteJid = messageRaw.key.remoteJidAlt; + } + console.log(messageRaw); this.sendDataWebhook(Events.MESSAGES_UPSERT, messageRaw);