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