mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Remove unnecessary check
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
a3d0ccf306
commit
08c0f0a67e
1 changed files with 1 additions and 3 deletions
|
@ -513,9 +513,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||
|
||||
// persist last viewed room from a space
|
||||
|
||||
// We don't want to save if the room is a
|
||||
// space room since it can cause problems
|
||||
if (room && !room.isSpaceRoom()) {
|
||||
if (room) {
|
||||
const activeSpaceId = this.activeSpace?.roomId || LAST_VIEWED_ROOMS_HOME;
|
||||
window.localStorage.setItem(`${LAST_VIEWED_ROOMS}_${activeSpaceId}`, payload.room_id);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue