mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Revert "Remove unnecessary check"
This reverts commit 08c0f0a67e
.
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
b2e9f6731b
commit
3adb2635ba
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||
const room = this.matrixClient?.getRoom(payload.room_id);
|
||||
|
||||
// persist last viewed room from a space
|
||||
if (room) {
|
||||
if (room && !room.isSpaceRoom()) {
|
||||
window.localStorage.setItem(getLastViewedRoomsStorageKey(this.activeSpace), payload.room_id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue