Skip to content

Commit c6a7e23

Browse files
author
ricael
committed
fix: ajustar a manipulação da chave remota da mensagem no serviço WhatsApp para incluir JID alternativo
1 parent 486645f commit c6a7e23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,10 @@ export class BaileysStartupService extends ChannelStartupService {
13491349
}
13501350
}
13511351

1352+
if (messageRaw.key.remoteJid?.includes('@lid') && messageRaw.key.remoteJidAlt) {
1353+
messageRaw.key.remoteJid = messageRaw.key.remoteJidAlt;
1354+
}
1355+
13521356
this.logger.log(messageRaw);
13531357

13541358
this.sendDataWebhook(Events.MESSAGES_UPSERT, messageRaw);

0 commit comments

Comments
 (0)