null-guard MatrixClientPeg in RoomViewStore
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
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