diff --git a/src/web/inbound.test.ts b/src/web/inbound.test.ts index 5850114da..de9fd4a13 100644 --- a/src/web/inbound.test.ts +++ b/src/web/inbound.test.ts @@ -124,7 +124,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 8fc094515..38f43b3fe 100644 --- a/src/web/inbound.ts +++ b/src/web/inbound.ts @@ -801,10 +801,7 @@ function formatContactsPlaceholder(labels: string[], total: number): string { const suffix = total === 1 ? "contact" : "contacts"; return ``; } - const shown = cleaned.slice(0, 3); - const remaining = Math.max(total - shown.length, 0); - const suffix = remaining > 0 ? ` +${remaining} more` : ""; - return ``; + return ``; } function formatContactLabel(