From cbdeb1ba6d2b5a5bd64300e0442c32edc67ca821 Mon Sep 17 00:00:00 2001 From: Asraye Date: Sun, 31 Aug 2025 03:40:33 +1000 Subject: [PATCH] FIX: Ignore Default category (parity with beta) Just a little change so people still using Revite don't need to see an ugly "Default" category. --- .../navigation/left/ServerSidebar.tsx | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/navigation/left/ServerSidebar.tsx b/src/components/navigation/left/ServerSidebar.tsx index b2b602ff..0c25c873 100644 --- a/src/components/navigation/left/ServerSidebar.tsx +++ b/src/components/navigation/left/ServerSidebar.tsx @@ -50,8 +50,10 @@ const ServerList = styled.div` export default observer(() => { const client = useClient(); const state = useApplicationState(); - const { server: server_id, channel: channel_id } = - useParams<{ server: string; channel?: string }>(); + const { server: server_id, channel: channel_id } = useParams<{ + server: string; + channel?: string; + }>(); const server = client.servers.get(server_id); if (!server) return ; @@ -119,14 +121,18 @@ export default observer(() => { channels.push(addChannel(id)); } - elements.push( - {category.title}}> - {channels} - , - ); + if (category.title === "Default") { + elements.push(...channels); + } else { + elements.push( + {category.title}}> + {channels} + , + ); + } } }