Skip to content

Commit c6f95df

Browse files
committed
Merge pull request element-hq#1180 from vector-im/matthew/fix-notif-spam
fix notif spam when logging in from a guest session by correctly logging out first.
2 parents 4164688 + a6e3b39 commit c6f95df

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/components/views/globals/GuestWarningBar.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ module.exports = React.createClass({
2323
onRegisterClicked: function() {
2424
dis.dispatch({'action': 'start_upgrade_registration'});
2525
},
26-
26+
2727
onLoginClicked: function() {
28-
dis.dispatch({'action': 'start_login_from_guest'});
28+
dis.dispatch({'action': 'logout'});
29+
dis.dispatch({'action': 'start_login'});
2930
},
3031

3132
render: function() {

0 commit comments

Comments
 (0)