Tweak data loading

This commit is contained in:
Jon Staab
2025-04-11 14:44:27 -07:00
parent 10a1e6e640
commit d5b1fab1e7
6 changed files with 25 additions and 25 deletions
+2 -4
View File
@@ -348,9 +348,7 @@ export const listenForNotifications = () => {
relays: [url],
filters: [
{kinds: [THREAD], limit: 1},
{kinds: [EVENT_TIME], limit: 1},
{kinds: [COMMENT], "#K": [String(THREAD)], limit: 1},
{kinds: [COMMENT], "#K": [String(EVENT_TIME)], limit: 1},
...rooms.map(room => ({kinds: [MESSAGE], "#h": [room], limit: 1})),
],
})
@@ -359,8 +357,8 @@ export const listenForNotifications = () => {
signal: controller.signal,
relays: [url],
filters: [
{kinds: [THREAD, EVENT_TIME], since: now()},
{kinds: [COMMENT], "#K": [String(THREAD), String(EVENT_TIME)], since: now()},
{kinds: [THREAD], since: now()},
{kinds: [COMMENT], "#K": [String(THREAD)], since: now()},
...rooms.map(room => ({kinds: [MESSAGE], "#h": [room], since: now()})),
],
})