mirror of https://github.com/vector-im/riot-web
Show the 'homeserver unavailable' warning when the first sync fails
Fixes https://github.com/vector-im/riot-web/issues/7380pull/21833/head
parent
cf0c12f679
commit
16b2fb7fe6
|
@ -1253,8 +1253,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});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue