Merge pull request #4 from ricaelchiquetti/fix/evolution_baileys_7

fix: ajustar a manipulação do remoteJid na mensagem
This commit is contained in:
William Dumes 2025-09-17 17:46:03 -03:00 committed by GitHub
commit f0c6300599
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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); this.sendDataWebhook(Events.MESSAGES_UPSERT, messageRaw);