From c6a7e2368bb71dc6f84cf9922d712f3b66a06a33 Mon Sep 17 00:00:00 2001 From: ricael Date: Thu, 18 Sep 2025 09:22:40 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20ajustar=20a=20manipula=C3=A7=C3=A3o=20da?= =?UTF-8?q?=20chave=20remota=20da=20mensagem=20no=20servi=C3=A7o=20WhatsAp?= =?UTF-8?q?p=20para=20incluir=20JID=20alternativo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index ace12e16..bc2b4643 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1349,6 +1349,10 @@ export class BaileysStartupService extends ChannelStartupService { } } + if (messageRaw.key.remoteJid?.includes('@lid') && messageRaw.key.remoteJidAlt) { + messageRaw.key.remoteJid = messageRaw.key.remoteJidAlt; + } + this.logger.log(messageRaw); this.sendDataWebhook(Events.MESSAGES_UPSERT, messageRaw);