fix(whatsapp): ensure accountLid is defined before checking for '@lid' in remoteLid assignment

This commit is contained in:
Jeferson Ramos
2026-01-22 15:08:33 -03:00
parent 9401216927
commit 636b9a8d06
@@ -1022,7 +1022,7 @@ export class BaileysStartupService extends ChannelStartupService {
}
}
if (!remoteLid && chat.accountLid.search('@lid') !== -1) {
if (!remoteLid && chat.accountLid && chat.accountLid.search('@lid') !== -1) {
remoteLid = chat.accountLid;
}