From 82ffcfb1816288877a7b7aacfe0fe2b57b791690 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 10 Jan 2026 00:16:05 +0000 Subject: [PATCH] fix(web): show all WhatsApp shared contacts --- src/web/inbound.test.ts | 2 +- src/web/inbound.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/inbound.test.ts b/src/web/inbound.test.ts index bac354d6b..47c1acdae 100644 --- a/src/web/inbound.test.ts +++ b/src/web/inbound.test.ts @@ -141,7 +141,7 @@ describe("web inbound helpers", () => { }, } as unknown as import("@whiskeysockets/baileys").proto.IMessage); expect(body).toBe( - "", + "", ); }); diff --git a/src/web/inbound.ts b/src/web/inbound.ts index 553c02a8f..aeae8f919 100644 --- a/src/web/inbound.ts +++ b/src/web/inbound.ts @@ -801,9 +801,9 @@ function formatContactsPlaceholder(labels: string[], total: number): string { const suffix = total === 1 ? "contact" : "contacts"; return ``; } - const { shown, remaining } = summarizeList(cleaned, total, 3); + const remaining = Math.max(total - cleaned.length, 0); const suffix = remaining > 0 ? ` +${remaining} more` : ""; - return ``; + return ``; } function formatContactLabel(