Fix flapping subscription

This commit is contained in:
Jon Staab
2025-10-30 12:06:53 -07:00
parent 64539c49c1
commit cfeb6478cc
+4 -4
View File
@@ -357,13 +357,13 @@ const syncRooms = () => {
for (const url of getRelayTagValues(getListTags($l))) { for (const url of getRelayTagValues(getListTags($l))) {
if (hasNip29($relaysByUrl.get(url))) { if (hasNip29($relaysByUrl.get(url))) {
for (const room of getSpaceRoomsFromGroupSelections(url, $l)) { for (const room of getSpaceRoomsFromGroupSelections(url, $l)) {
const id = `${url}'${room}` const key = `${url}'${room}`
if (!unsubscribersByKey.has(id)) { if (!unsubscribersByKey.has(key)) {
newUnsubscribersByKey.set(url, syncRoomChat(url, room)) newUnsubscribersByKey.set(key, syncRoomChat(url, room))
} }
keys.add(id) keys.add(key)
} }
} }
} }