Show notifications on non-nip29 chat

This commit is contained in:
Jon Staab
2026-03-30 14:29:24 -07:00
parent 5760be4313
commit 55e3a31b61
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
const title = getTagValue("title", event.tags)
const h = getTagValue("h", event.tags)
const images = getTagValues("image", event.tags)
const images = new Set(getTagValues("image", event.tags))
const [_, price = 0, currency = "SAT"] = getTag("price", event.tags) || []
</script>
+2 -1
View File
@@ -59,6 +59,7 @@
import {setSpaceNotifications} from "@app/core/commands"
import {pushModal} from "@app/util/modal"
import {makeSpacePath, goToChat} from "@app/util/routes"
import {notifications} from "@app/util/notifications"
const {url} = $props()
@@ -232,7 +233,7 @@
<Icon icon={History} /> Recent Activity
</SecondaryNavItem>
{:else}
<SecondaryNavItem href={chatPath}>
<SecondaryNavItem href={chatPath} notification={$notifications.has(chatPath)}>
<Icon icon={ChatRound} /> Chat
</SecondaryNavItem>
{/if}