Move livekit auth to relay

This commit is contained in:
mplorentz
2026-03-02 17:00:19 -05:00
committed by hodlbod
parent 3049efe889
commit 52f2f31ce6
8 changed files with 386 additions and 82 deletions
+16 -6
View File
@@ -55,6 +55,8 @@
notificationSettings,
deriveShouldNotify,
displayRoom,
roomHasLivekit,
roomIsNoText,
} from "@app/core/state"
import {setSpaceNotifications} from "@app/core/commands"
import {pushModal} from "@app/util/modal"
@@ -257,9 +259,13 @@
<div class="h-2"></div>
<SecondaryNavHeader>Your Rooms</SecondaryNavHeader>
{/if}
{#each $userRooms as h, i (h)}
<SpaceMenuRoomItem notify {replaceState} {url} {h} />
<VoiceRoomItem {url} {h} />
{#each $userRooms as h (h)}
{#if !roomIsNoText(url, h)}
<SpaceMenuRoomItem notify {replaceState} {url} {h} />
{/if}
{#if roomHasLivekit(url, h)}
<VoiceRoomItem {url} {h} />
{/if}
{/each}
{#if $otherRooms.length > 0}
<div class="h-2"></div>
@@ -277,9 +283,13 @@
<input bind:value={term} onblur={clearTerm} class="grow" />
</label>
{/if}
{#each $roomSearch.searchValues(term) as h, i (h)}
<SpaceMenuRoomItem {replaceState} {url} {h} />
<VoiceRoomItem {url} {h} />
{#each $roomSearch.searchValues(term) as h (h)}
{#if !roomIsNoText(url, h)}
<SpaceMenuRoomItem {replaceState} {url} {h} />
{/if}
{#if roomHasLivekit(url, h)}
<VoiceRoomItem {url} {h} />
{/if}
{/each}
{#if $canCreateRoom}
<SecondaryNavItem {replaceState} onclick={addRoom}>