when automatically switching space to match room fall back to the home space

pull/21833/head
Michael Telatynski 2021-04-22 08:39:16 +01:00
parent e1ba04716e
commit b64b956aa4
1 changed files with 2 additions and 4 deletions

View File

@ -535,10 +535,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
const parents = Array.from(this.parentMap.get(room.roomId) || []);
parent = parents.find(p => this.matrixClient.getRoom(p));
}
if (parent) {
// don't trigger a context switch when we are switching a space to match the chosen room
this.setActiveSpace(parent, false);
}
// don't trigger a context switch when we are switching a space to match the chosen room
this.setActiveSpace(parent || null, false);
}
// Persist last viewed room from a space