Cancel 'join room' action if 'log in' is clicked

or 'choose different server'

We canceled the deferred action in the MatrixChat SetMxId dialog
but not the one in roomview.

Fixes https://github.com/vector-im/riot-web/issues/4217
pull/21833/head
David Baker 2017-06-07 11:55:24 +01:00
parent 9c30de0eaa
commit 1dbdbc163b
1 changed files with 3 additions and 0 deletions

View File

@ -791,6 +791,9 @@ module.exports = React.createClass({
if (submitted) {
this.props.onRegistered(credentials);
} else {
dis.dispatch({
action: 'cancel_after_sync_prepared',
});
dis.dispatch({
action: 'cancel_join',
});