fix: usar dígitos del jid como fallback al normalizar WhatsApp ID

Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
webui
brobert 2 weeks ago
parent bd0fda2248
commit 90771eb34a

@ -439,7 +439,11 @@ export class GroupSyncService {
}
}
const norm = normalizeWhatsAppId(jid);
let norm = normalizeWhatsAppId(jid);
if (!norm) {
const digits = (jid || '').replace(/\D+/g, '');
norm = digits || null;
}
if (!norm) continue;
result.push({ userId: norm, isAdmin });
}
@ -528,7 +532,11 @@ export class GroupSyncService {
}
}
const norm = normalizeWhatsAppId(jid);
let norm = normalizeWhatsAppId(jid);
if (!norm) {
const digits = (jid || '').replace(/\D+/g, '');
norm = digits || null;
}
if (!norm) continue;
result.push({ userId: norm, isAdmin });
}

Loading…
Cancel
Save