Disable spaces context switching for when exploring a space
This commit is contained in:
parent
dda18c9384
commit
751568cef2
1 changed files with 3 additions and 1 deletions
|
@ -543,7 +543,9 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
||||||
// persist last viewed room from a space
|
// persist last viewed room from a space
|
||||||
|
|
||||||
if (room.isSpaceRoom()) {
|
if (room.isSpaceRoom()) {
|
||||||
this.setActiveSpace(room);
|
// Don't context switch when navigating to the space room
|
||||||
|
// as it will cause you to end up in the wrong room
|
||||||
|
this.setActiveSpace(room, false);
|
||||||
} else if (!this.getSpaceFilteredRoomIds(this.activeSpace).has(room.roomId)) {
|
} else if (!this.getSpaceFilteredRoomIds(this.activeSpace).has(room.roomId)) {
|
||||||
// TODO maybe reverse these first 2 clauses once space panel active is fixed
|
// TODO maybe reverse these first 2 clauses once space panel active is fixed
|
||||||
let parent = this.rootSpaces.find(s => this.spaceFilteredRooms.get(s.roomId)?.has(room.roomId));
|
let parent = this.rootSpaces.find(s => this.spaceFilteredRooms.get(s.roomId)?.has(room.roomId));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue