Merge pull request #1955 from ricaelchiquetti/fix/upsert_remote_jid_alt

Fix/Adjust remote message key handling in WhatsApp service to include alternative JID
This commit is contained in:
Davidson Gomes 2025-09-18 09:30:28 -03:00 committed by GitHub
commit ff9ff60e3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1358,6 +1358,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);