mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-03-21 20:18:40 -06:00
fix(whatsapp): handle remoteLid assignment for chats with accountLid containing '@lid'
This commit is contained in:
@@ -1022,6 +1022,10 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
}
|
||||
}
|
||||
|
||||
if (!remoteLid && chat.accountLid.search('@lid') !== -1) {
|
||||
remoteLid = chat.accountLid;
|
||||
}
|
||||
|
||||
if (!remoteJid) {
|
||||
remoteJid = chat.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user