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

View file

@ -20,7 +20,7 @@
const title = getTagValue("title", event.tags) const title = getTagValue("title", event.tags)
const h = getTagValue("h", 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) || [] const [_, price = 0, currency = "SAT"] = getTag("price", event.tags) || []
</script> </script>

View file

@ -59,6 +59,7 @@
import {setSpaceNotifications} from "@app/core/commands" import {setSpaceNotifications} from "@app/core/commands"
import {pushModal} from "@app/util/modal" import {pushModal} from "@app/util/modal"
import {makeSpacePath, goToChat} from "@app/util/routes" import {makeSpacePath, goToChat} from "@app/util/routes"
import {notifications} from "@app/util/notifications"
const {url} = $props() const {url} = $props()
@ -232,7 +233,7 @@
<Icon icon={History} /> Recent Activity <Icon icon={History} /> Recent Activity
</SecondaryNavItem> </SecondaryNavItem>
{:else} {:else}
<SecondaryNavItem href={chatPath}> <SecondaryNavItem href={chatPath} notification={$notifications.has(chatPath)}>
<Icon icon={ChatRound} /> Chat <Icon icon={ChatRound} /> Chat
</SecondaryNavItem> </SecondaryNavItem>
{/if} {/if}