mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
when automatically switching space to match room fall back to the home space
This commit is contained in:
parent
e1ba04716e
commit
b64b956aa4
@ -535,10 +535,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||||||
const parents = Array.from(this.parentMap.get(room.roomId) || []);
|
const parents = Array.from(this.parentMap.get(room.roomId) || []);
|
||||||
parent = parents.find(p => this.matrixClient.getRoom(p));
|
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
|
// don't trigger a context switch when we are switching a space to match the chosen room
|
||||||
this.setActiveSpace(parent, false);
|
this.setActiveSpace(parent || null, false);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Persist last viewed room from a space
|
// Persist last viewed room from a space
|
||||||
|
Loading…
x
Reference in New Issue
Block a user