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