Merge pull request #2031 from matrix-org/t3chguy/notif_nag_bar

move nag bar clear statement to any desktop notif toggle not just 0->1
This commit is contained in:
Bruno Windels 2018-07-09 11:17:15 +01:00 committed by GitHub
commit e61317284b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,15 +170,15 @@ const Notifier = {
value: true,
});
});
// clear the notifications_hidden flag, so that if notifications are
// disabled again in the future, we will show the banner again.
this.setToolbarHidden(true);
} else {
dis.dispatch({
action: "notifier_enabled",
value: false,
});
}
// set the notifications_hidden flag, as the user has knowingly interacted
// with the setting we shouldn't nag them any further
this.setToolbarHidden(true);
},
isEnabled: function() {