We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1547478 commit 26df023Copy full SHA for 26df023
src/modules/Reconciler.ts
@@ -493,7 +493,8 @@ export default class extends Module {
493
await space.addChildRoom(id, { via, ...expected });
494
}
495
if (space.room.private) this.#publicSpaceByChild.delete(id);
496
- else this.#publicSpaceByChild.set(id, { id: space.room.id, local: space.room.local });
+ else if (!this.#publicSpaceByChild.has(id))
497
+ this.#publicSpaceByChild.set(id, { id: space.room.id, local: space.room.local });
498
const privateChildren = this.#privateChildrenByParent.get(space.roomId) ?? new Map();
499
if ("private" in child && child.private) privateChildren.set(child.id, child);
500
else privateChildren.delete(child.id);
0 commit comments