From 4f2e494959a5a14cabaee9b0414d0a93796199b3 Mon Sep 17 00:00:00 2001 From: mplorentz Date: Fri, 3 Apr 2026 10:41:05 -0400 Subject: [PATCH] Allow clicking voice widget to go back to call --- src/app/components/VoiceWidget.svelte | 56 +++++++++++++++++---------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/src/app/components/VoiceWidget.svelte b/src/app/components/VoiceWidget.svelte index dfcdebb6..41664f4d 100644 --- a/src/app/components/VoiceWidget.svelte +++ b/src/app/components/VoiceWidget.svelte @@ -76,6 +76,14 @@ pushModal(VoiceRoomJoinDialog, {url: targetRoom.url, h: targetRoom.h}) } + const goToRoom = () => { + if (!targetRoom) return + const path = makeRoomPath(targetRoom.url, targetRoom.h) + if ($page.url.pathname !== path) { + void goto(path) + } + } + const openCallSettings = () => { pushModal(VoiceCallAudioSettingsDialog) } @@ -138,27 +146,33 @@ in:fly={{y: 60, duration: 350}} out:fly={{y: 60, duration: 250}} class="flex flex-col gap-2 rounded-box bg-base-100 p-3"> -
-
- {#if $voiceState === VoiceState.Joining} - Joining... - {:else if $voiceState === VoiceState.Connected} - Voice Connected - {:else} - Disconnected - {/if} - {#if showVoiceLayoutToggle} - - {/if} -
- - {roomName} / {spaceName} - +
+ + {#if showVoiceLayoutToggle} + + {/if}
{#if $voiceState === VoiceState.Joining}