mirror of https://github.com/vector-im/riot-web
Remove unnecessary check
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
a3d0ccf306
commit
08c0f0a67e
|
@ -513,9 +513,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
||||||
|
|
||||||
// persist last viewed room from a space
|
// persist last viewed room from a space
|
||||||
|
|
||||||
// We don't want to save if the room is a
|
if (room) {
|
||||||
// space room since it can cause problems
|
|
||||||
if (room && !room.isSpaceRoom()) {
|
|
||||||
const activeSpaceId = this.activeSpace?.roomId || LAST_VIEWED_ROOMS_HOME;
|
const activeSpaceId = this.activeSpace?.roomId || LAST_VIEWED_ROOMS_HOME;
|
||||||
window.localStorage.setItem(`${LAST_VIEWED_ROOMS}_${activeSpaceId}`, payload.room_id);
|
window.localStorage.setItem(`${LAST_VIEWED_ROOMS}_${activeSpaceId}`, payload.room_id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue