diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 71e61cda22..c2b99d2765 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1253,8 +1253,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}); }