From a19de564feacb394fdfc0119678b8280b6890434 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Fri, 28 Aug 2026 12:17:53 +0200 Subject: [PATCH] Improved sidebar --- src/components/view/Sidebar.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/view/Sidebar.tsx b/src/components/view/Sidebar.tsx index 0243101..5aed5af 100644 --- a/src/components/view/Sidebar.tsx +++ b/src/components/view/Sidebar.tsx @@ -60,11 +60,12 @@ export function RenderFeatures({ switch (channel.kind) { case "voice": const users = appRef.current?.server?.voiceChatUsers[channel.id]; + const isCurrentVc = channel.id === appRef.current?.server?.voiceChannelId; return ( users && (
- {users.slice(0, 5).map((pubkey) => { + {(isCurrentVc ? users : users.slice(0, 15)).map((pubkey) => { const user = appRef.current?.server?.users[pubkey]; if (!user) return null; @@ -94,9 +95,9 @@ export function RenderFeatures({
); })} - {users.length > 5 && ( + {!isCurrentVc && users.length > 15 && ( - and {users.length - 5} others + and {users.length - 15} others )} @@ -157,7 +158,7 @@ export default function Sidebar({

{appRef.current.server.meta.name}

-
+