Merge pull request #4415 from matrix-org/t3chguy/wait4initialsync
null-guard MatrixClientPeg in RoomViewStore
This commit is contained in:
commit
4154acc9dd
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ class RoomViewStore extends Store {
|
|||
}
|
||||
case 'sync_state':
|
||||
this._setState({
|
||||
matrixClientIsReady: MatrixClientPeg.get().isInitialSyncComplete(),
|
||||
matrixClientIsReady: MatrixClientPeg.get() && MatrixClientPeg.get().isInitialSyncComplete(),
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue