From 6ebe792ce554de9ab753180d6f0876488e200860 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 25 Mar 2026 15:35:00 -0700 Subject: [PATCH] Show notification badge on voice room item --- src/app/components/SpaceMenuRoomItem.svelte | 8 +++----- src/app/components/VoiceRoomItem.svelte | 4 +++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/components/SpaceMenuRoomItem.svelte b/src/app/components/SpaceMenuRoomItem.svelte index 73c833ff..a850329f 100644 --- a/src/app/components/SpaceMenuRoomItem.svelte +++ b/src/app/components/SpaceMenuRoomItem.svelte @@ -23,15 +23,13 @@ const shouldNotifyForSpace = deriveShouldNotify(url) const shouldNotifyForRoom = deriveShouldNotify(url, h) const showDifferenceIcon = $derived($shouldNotifyForRoom !== $shouldNotifyForSpace) + const notification = $derived($shouldNotifyForRoom ? $notifications.has(path) : false) {#if roomType === RoomType.Voice} - + {:else} - + {#if showDifferenceIcon} diff --git a/src/app/components/VoiceRoomItem.svelte b/src/app/components/VoiceRoomItem.svelte index 5de7178a..6101e759 100644 --- a/src/app/components/VoiceRoomItem.svelte +++ b/src/app/components/VoiceRoomItem.svelte @@ -25,9 +25,10 @@ url: string h: string replaceState?: boolean + notification?: boolean } - const {url, h, replaceState = false}: Props = $props() + const {url, h, replaceState = false, notification = false}: Props = $props() const participants = deriveVoiceParticipants(url, h) const isActive = $derived( @@ -61,6 +62,7 @@