mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-03-21 20:18:40 -06:00
fix(whatsapp): ensure accountLid is defined before checking for '@lid' in remoteLid assignment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user