Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2182 from matrix-org/travis/warn-disconnect-early
Browse files Browse the repository at this point in the history
Show the 'homeserver unavailable' warning when the first sync fails
  • Loading branch information
turt2live committed Sep 28, 2018
2 parents 5765d59 + 16b2fb7 commit a1cb6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/structures/MatrixChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
Expand Down

0 comments on commit a1cb6d6

Please sign in to comment.