mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Cancel deferred actions
if the set mxid dialog is canceled
This commit is contained in:
parent
3553aea5df
commit
f6cfff9098
2 changed files with 8 additions and 0 deletions
|
@ -676,6 +676,9 @@ module.exports = React.createClass({
|
|||
homeserverUrl: MatrixClientPeg.get().getHomeserverUrl(),
|
||||
onFinished: (submitted, credentials) => {
|
||||
if (!submitted) {
|
||||
dis.dispatch({
|
||||
action: 'cancel_after_sync_prepared',
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.onRegistered(credentials);
|
||||
|
|
|
@ -45,6 +45,11 @@ class LifecycleStore extends Store {
|
|||
deferred_action: payload.deferred_action,
|
||||
});
|
||||
break;
|
||||
case 'cancel_after_sync_prepared':
|
||||
this._setState({
|
||||
deferred_action: null,
|
||||
});
|
||||
break;
|
||||
case 'sync_state':
|
||||
if (payload.state !== 'PREPARED') {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue