WhatsApp: show all contacts in shares

This commit is contained in:
Mahmoud Ibrahim
2026-01-10 01:45:24 +02:00
committed by Peter Steinberger
parent 18338bc60f
commit d1e10af1e1
2 changed files with 2 additions and 5 deletions

View File

@@ -801,10 +801,7 @@ function formatContactsPlaceholder(labels: string[], total: number): string {
const suffix = total === 1 ? "contact" : "contacts";
return `<contacts: ${total} ${suffix}>`;
}
const shown = cleaned.slice(0, 3);
const remaining = Math.max(total - shown.length, 0);
const suffix = remaining > 0 ? ` +${remaining} more` : "";
return `<contacts: ${shown.join(", ")}${suffix}>`;
return `<contacts: ${cleaned.join(", ")}>`;
}
function formatContactLabel(