From cfeb6478cc3935062e00cd90e5d2e0be209d7e63 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 30 Oct 2025 12:06:53 -0700 Subject: [PATCH] Fix flapping subscription --- src/app/core/sync.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/core/sync.ts b/src/app/core/sync.ts index b3fe41ca..4cb08a2b 100644 --- a/src/app/core/sync.ts +++ b/src/app/core/sync.ts @@ -357,13 +357,13 @@ const syncRooms = () => { for (const url of getRelayTagValues(getListTags($l))) { if (hasNip29($relaysByUrl.get(url))) { for (const room of getSpaceRoomsFromGroupSelections(url, $l)) { - const id = `${url}'${room}` + const key = `${url}'${room}` - if (!unsubscribersByKey.has(id)) { - newUnsubscribersByKey.set(url, syncRoomChat(url, room)) + if (!unsubscribersByKey.has(key)) { + newUnsubscribersByKey.set(key, syncRoomChat(url, room)) } - keys.add(id) + keys.add(key) } } }