mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-04 10:32:44 +00:00
Merge pull request #4415 from matrix-org/t3chguy/wait4initialsync
null-guard MatrixClientPeg in RoomViewStore
This commit is contained in:
@@ -159,7 +159,7 @@ class RoomViewStore extends Store {
|
||||
}
|
||||
case 'sync_state':
|
||||
this._setState({
|
||||
matrixClientIsReady: MatrixClientPeg.get().isInitialSyncComplete(),
|
||||
matrixClientIsReady: MatrixClientPeg.get() && MatrixClientPeg.get().isInitialSyncComplete(),
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user