mirror of https://github.com/vector-im/riot-web
Merge pull request #4415 from matrix-org/t3chguy/wait4initialsync
null-guard MatrixClientPeg in RoomViewStorepull/21833/head
commit
4154acc9dd
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue