fix: ajustar a manipulação da chave remota da mensagem no serviço WhatsApp para incluir JID alternativo

This commit is contained in:
ricael 2025-09-18 09:22:40 -03:00
parent 486645fb08
commit c6a7e2368b

View File

@ -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);