Merge pull request #1180 from vector-im/matthew/fix-notif-spam

fix notif spam when logging in from a guest session by correctly logging out first.
pull/1191/head
Matthew Hodgson 2016-03-17 14:37:21 +00:00
commit c6f95dfb3b
1 changed files with 3 additions and 2 deletions

View File

@ -23,9 +23,10 @@ module.exports = React.createClass({
onRegisterClicked: function() {
dis.dispatch({'action': 'start_upgrade_registration'});
},
onLoginClicked: function() {
dis.dispatch({'action': 'start_login_from_guest'});
dis.dispatch({'action': 'logout'});
dis.dispatch({'action': 'start_login'});
},
render: function() {