mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-09 01:49:37 -06:00
fix: enhance remoteJid processing to handle '@lid' cases
This commit is contained in:
parent
faed3f4574
commit
92c2ace7bc
@ -2531,6 +2531,9 @@ export class ChatwootService {
|
||||
if (!remoteJid) {
|
||||
return '';
|
||||
}
|
||||
if (remoteJid.includes('@lid')) {
|
||||
return remoteJid;
|
||||
}
|
||||
return remoteJid.replace(/:\d+/, '').split('@')[0];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user