Update src/stores/SpaceStore.tsx

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
pull/21833/head
Šimon Brandner 2021-04-20 13:31:50 +02:00 committed by GitHub
parent d4ca087c2e
commit 4344ff9097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
// view last selected room from space
const roomId = window.localStorage.getItem(getLastViewedRoomsStorageKey(this.activeSpace));
if (roomId && this.matrixClient.getRoom(roomId).getMyMembership() === "join") {
if (roomId && this.matrixClient?.getRoom(roomId)?.getMyMembership() === "join") {
defaultDispatcher.dispatch({
action: "view_room",
room_id: roomId,