Skip to content

Commit 26df023

Browse files
Don’t nudge into views
1 parent 1547478 commit 26df023

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/modules/Reconciler.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,8 @@ export default class extends Module {
493493
await space.addChildRoom(id, { via, ...expected });
494494
}
495495
if (space.room.private) this.#publicSpaceByChild.delete(id);
496-
else this.#publicSpaceByChild.set(id, { id: space.room.id, local: space.room.local });
496+
else if (!this.#publicSpaceByChild.has(id))
497+
this.#publicSpaceByChild.set(id, { id: space.room.id, local: space.room.local });
497498
const privateChildren = this.#privateChildrenByParent.get(space.roomId) ?? new Map();
498499
if ("private" in child && child.private) privateChildren.set(child.id, child);
499500
else privateChildren.delete(child.id);

0 commit comments

Comments
 (0)