Skip to content

Commit 636b9a8

Browse files
committed
fix(whatsapp): ensure accountLid is defined before checking for '@lid' in remoteLid assignment
1 parent 9401216 commit 636b9a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ export class BaileysStartupService extends ChannelStartupService {
10221022
}
10231023
}
10241024

1025-
if (!remoteLid && chat.accountLid.search('@lid') !== -1) {
1025+
if (!remoteLid && chat.accountLid && chat.accountLid.search('@lid') !== -1) {
10261026
remoteLid = chat.accountLid;
10271027
}
10281028

0 commit comments

Comments
 (0)