Merge pull request #4415 from matrix-org/t3chguy/wait4initialsync

null-guard MatrixClientPeg in RoomViewStore
pull/21833/head
J. Ryan Stinnett 2020-04-15 18:46:23 +01:00 committed by GitHub
commit 4154acc9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class RoomViewStore extends Store {
}
case 'sync_state':
this._setState({
matrixClientIsReady: MatrixClientPeg.get().isInitialSyncComplete(),
matrixClientIsReady: MatrixClientPeg.get() && MatrixClientPeg.get().isInitialSyncComplete(),
});
break;
}