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

null-guard MatrixClientPeg in RoomViewStore
This commit is contained in:
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

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