mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +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:
commit
a1cb6d64cf
1 changed files with 2 additions and 2 deletions
|
@ -1261,8 +1261,8 @@ export default React.createClass({
|
|||
// its own dispatch).
|
||||
dis.dispatch({action: 'sync_state', prevState, state});
|
||||
|
||||
if (state === "ERROR") {
|
||||
self.setState({syncError: data.error});
|
||||
if (state === "ERROR" || state === "RECONNECTING") {
|
||||
self.setState({syncError: data.error || true});
|
||||
} else if (self.state.syncError) {
|
||||
self.setState({syncError: null});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue