1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

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

View File

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