Fix flapping subscription
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user