Skip to content

Commit d131e83

Browse files
committed
fix(whatsapp): handle remoteLid assignment for chats with accountLid containing '@lid'
1 parent 06b0ff0 commit d131e83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,10 @@ export class BaileysStartupService extends ChannelStartupService {
10221022
}
10231023
}
10241024

1025+
if (!remoteLid && chat.accountLid.search('@lid') !== -1) {
1026+
remoteLid = chat.accountLid;
1027+
}
1028+
10251029
if (!remoteJid) {
10261030
remoteJid = chat.id;
10271031
}

0 commit comments

Comments
 (0)