Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
Signed-off-by: Šimon Brandner <[email protected]>
  • Loading branch information
SimonBrandner committed Apr 20, 2021
1 parent a3d0ccf commit 08c0f0a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stores/SpaceStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 08c0f0a

Please sign in to comment.