mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
Don't context switch room on SpaceStore ready as it can break permalinks
This commit is contained in:
parent
7d74cfecda
commit
44b4561b8b
1 changed files with 2 additions and 1 deletions
|
@ -782,7 +782,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||
// restore selected state from last session if any and still valid
|
||||
const lastSpaceId = window.localStorage.getItem(ACTIVE_SPACE_LS_KEY);
|
||||
if (lastSpaceId) {
|
||||
this.setActiveSpace(this.matrixClient.getRoom(lastSpaceId));
|
||||
// don't context switch here as it may break permalinks
|
||||
this.setActiveSpace(this.matrixClient.getRoom(lastSpaceId), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue