You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Don't show spinner once liveness check has failed
We're not doing anything at that point so it's a lie
This commit is contained in:
@@ -177,7 +177,10 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
this.setState({serverIsAlive: true});
|
this.setState({serverIsAlive: true});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.setState(AutoDiscoveryUtils.authComponentStateForError(e, "register"));
|
this.setState({
|
||||||
|
busy: false,
|
||||||
|
...AutoDiscoveryUtils.authComponentStateForError(e, "register"),
|
||||||
|
});
|
||||||
if (this.state.serverErrorIsFatal) {
|
if (this.state.serverErrorIsFatal) {
|
||||||
return; // Server is dead - do not continue.
|
return; // Server is dead - do not continue.
|
||||||
}
|
}
|
||||||
@@ -455,6 +458,8 @@ module.exports = React.createClass({
|
|||||||
emailSid={this.props.idSid}
|
emailSid={this.props.idSid}
|
||||||
poll={true}
|
poll={true}
|
||||||
/>;
|
/>;
|
||||||
|
} else if (!this.state.matrixClient && !this.state.busy) {
|
||||||
|
return null;
|
||||||
} else if (this.state.busy || !this.state.flows) {
|
} else if (this.state.busy || !this.state.flows) {
|
||||||
return <div className="mx_AuthBody_spinner">
|
return <div className="mx_AuthBody_spinner">
|
||||||
<Spinner />
|
<Spinner />
|
||||||
|
|||||||
Reference in New Issue
Block a user