Show notification badge on voice room item

This commit is contained in:
Jon Staab
2026-03-25 15:35:00 -07:00
parent 6c9bdb2ccd
commit 6ebe792ce5
2 changed files with 6 additions and 6 deletions
+3 -5
View File
@@ -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)
</script>
{#if roomType === RoomType.Voice}
<VoiceRoomItem {url} {h} {replaceState} />
<VoiceRoomItem {url} {h} {replaceState} {notification} />
{:else}
<SecondaryNavItem
href={path}
{replaceState}
notification={$shouldNotifyForRoom ? $notifications.has(path) : false}>
<SecondaryNavItem href={path} {replaceState} {notification}>
<RoomNameWithImage {url} {h} />
{#if showDifferenceIcon}
<Icon icon={$shouldNotifyForRoom ? Bell : BellOff} size={4} class="opacity-50" />