Use new kinds, re work channels

This commit is contained in:
Jon Staab
2024-12-05 13:37:15 -08:00
parent 64916f5d29
commit 14cd49caf3
6 changed files with 131 additions and 140 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
if ($page.url.pathname === path) return false
const lastChecked = max([$checked["*"], $checked[path]])
const roomEvents = $events.filter(e => matchFilter({"#~": [room]}, e))
const roomEvents = $events.filter(e => matchFilter({"#h": [room]}, e))
return getNotification($pubkey, lastChecked, roomEvents)
}),
+2 -1
View File
@@ -2,6 +2,7 @@
import Icon from "@lib/components/Icon.svelte"
import SecondaryNavItem from "@lib/components/SecondaryNavItem.svelte"
import {makeSpacePath} from "@app/routes"
import {displayRoom} from "@app/state"
import {deriveNotification, getRoomFilters} from "@app/notifications"
export let url
@@ -13,5 +14,5 @@
<SecondaryNavItem href={path} notification={$notification}>
<Icon icon="hashtag" />
{room}
{displayRoom(room)}
</SecondaryNavItem>