From 759369808065015e2e228e1dc0a4ec187bc3aede Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 13 Aug 2026 16:42:51 -0600 Subject: [PATCH] refac --- .../layout/Sidebar/ChannelItem.svelte | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/lib/components/layout/Sidebar/ChannelItem.svelte b/src/lib/components/layout/Sidebar/ChannelItem.svelte index 834996ef4d..6356e4a9eb 100644 --- a/src/lib/components/layout/Sidebar/ChannelItem.svelte +++ b/src/lib/components/layout/Sidebar/ChannelItem.svelte @@ -44,6 +44,12 @@ } return hasPublicReadGrant(channel?.access_grants); }; + + const formatUnreadCount = (count: number) => + new Intl.NumberFormat(undefined, { + notation: 'compact', + compactDisplay: 'short' + }).format(count); { console.log(channel); @@ -104,7 +110,7 @@ }} draggable="false" > -