Skip to content

Commit

Permalink
Don’t nudge into views
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim committed Nov 5, 2024
1 parent 1547478 commit 26df023
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/Reconciler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ export default class extends Module {
await space.addChildRoom(id, { via, ...expected });
}
if (space.room.private) this.#publicSpaceByChild.delete(id);
else this.#publicSpaceByChild.set(id, { id: space.room.id, local: space.room.local });
else if (!this.#publicSpaceByChild.has(id))
this.#publicSpaceByChild.set(id, { id: space.room.id, local: space.room.local });
const privateChildren = this.#privateChildrenByParent.get(space.roomId) ?? new Map();
if ("private" in child && child.private) privateChildren.set(child.id, child);
else privateChildren.delete(child.id);
Expand Down

0 comments on commit 26df023

Please sign in to comment.