You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Merge pull request #2182 from matrix-org/travis/warn-disconnect-early
Show the 'homeserver unavailable' warning when the first sync fails
This commit is contained in:
@@ -1261,8 +1261,8 @@ export default React.createClass({
|
|||||||
// its own dispatch).
|
// its own dispatch).
|
||||||
dis.dispatch({action: 'sync_state', prevState, state});
|
dis.dispatch({action: 'sync_state', prevState, state});
|
||||||
|
|
||||||
if (state === "ERROR") {
|
if (state === "ERROR" || state === "RECONNECTING") {
|
||||||
self.setState({syncError: data.error});
|
self.setState({syncError: data.error || true});
|
||||||
} else if (self.state.syncError) {
|
} else if (self.state.syncError) {
|
||||||
self.setState({syncError: null});
|
self.setState({syncError: null});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user