fix(whatsapp): handle remoteLid assignment for chats with accountLid containing '@lid'

This commit is contained in:
Jeferson Ramos
2026-01-21 09:53:28 -03:00
parent 06b0ff0e27
commit d131e83d08
@@ -1022,6 +1022,10 @@ export class BaileysStartupService extends ChannelStartupService {
}
}
if (!remoteLid && chat.accountLid.search('@lid') !== -1) {
remoteLid = chat.accountLid;
}
if (!remoteJid) {
remoteJid = chat.id;
}