From 628d41772322f981452c776413ba846b36ca4906 Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:49:06 +0100 Subject: [PATCH] fix: restore VoiceControls and chat split-view in DM calls VoiceControls was gated on server-only `currentVoiceChannelId`, now also triggers on `activeDmCall`. Added VoiceChatPanel to DM call view matching the server voice channel pattern. --- packages/web/src/components/layout/ChannelSidebar.tsx | 5 +++-- packages/web/src/components/layout/MainContent.tsx | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/web/src/components/layout/ChannelSidebar.tsx b/packages/web/src/components/layout/ChannelSidebar.tsx index 690fc816..6f064bd3 100644 --- a/packages/web/src/components/layout/ChannelSidebar.tsx +++ b/packages/web/src/components/layout/ChannelSidebar.tsx @@ -24,6 +24,7 @@ export function ChannelSidebar() { const user = useAuthStore((s) => s.user); const members = useServerStore((s) => s.members); const currentVoiceChannelId = useVoiceStore((s) => s.currentVoiceChannelId); + const activeDmCall = useVoiceStore((s) => s.activeDmCall); const setCurrentVoiceChannel = useVoiceStore((s) => s.setCurrentVoiceChannel); const isMuted = useVoiceStore((s) => s.isMuted); const isDeafened = useVoiceStore((s) => s.isDeafened); @@ -97,9 +98,9 @@ export function ChannelSidebar() {
{/* Voice controls (expands when connected) */} - {currentVoiceChannelId && } + {(currentVoiceChannelId || activeDmCall) && } {/* Separator between voice and user area */} - {currentVoiceChannelId &&
} + {(currentVoiceChannelId || activeDmCall) &&
} {/* User area (always visible) */} + {voiceChatOpen && !voiceFullscreen && ( + + )}