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" > -
+