Revert "Remove unnecessary check"

This reverts commit 08c0f0a67e.

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-04-20 15:40:32 +02:00
parent b2e9f6731b
commit 3adb2635ba
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -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);
}