mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
Merge pull request #6730 from matrix-org/t3chguy/fix/17974
Don't context switch room on SpaceStore ready as it can break permalinks
This commit is contained in:
commit
0b07a70b15
@ -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…
x
Reference in New Issue
Block a user