Improve syncing

This commit is contained in:
Jon Staab
2025-10-28 11:29:59 -07:00
parent 2e8678e4c6
commit 7502004aba
3 changed files with 233 additions and 141 deletions
+2 -2
View File
@@ -38,7 +38,7 @@
import SocketStatusIndicator from "@app/components/SocketStatusIndicator.svelte"
import {
ENABLE_ZAPS,
MESSAGE_FILTER,
CONTENT_KINDS,
deriveSpaceMembers,
deriveEventsForUrl,
deriveUserRooms,
@@ -65,7 +65,7 @@
const hasAlerts = $derived($alerts.some(a => getTagValue("feed", a.tags)?.includes(url)))
const spaceKinds = derived(
deriveEventsForUrl(url, [MESSAGE_FILTER]),
deriveEventsForUrl(url, [{kinds: CONTENT_KINDS}]),
$events => new Set($events.map(e => e.kind)),
)