Merge pull request #3617 from matrix-org/jryans/login-server-details-when-dead

Show server details on login for unreachable homeserver
pull/21833/head
J. Ryan Stinnett 2019-11-14 20:29:32 +00:00 committed by GitHub
commit 854b5a7af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -386,7 +386,11 @@ module.exports = createReactClass({
...AutoDiscoveryUtils.authComponentStateForError(e),
});
if (this.state.serverErrorIsFatal) {
return; // Server is dead - do not continue.
// Server is dead: show server details prompt instead
this.setState({
phase: PHASE_SERVER_DETAILS,
});
return;
}
}