static/js/settings_notifications: Deduplicate code.

This commit is contained in:
Yashashvi Dave
2019-06-12 14:03:45 +05:30
committed by Tim Abbott
parent 8e269b4651
commit ee072da47a
2 changed files with 27 additions and 35 deletions

View File

@@ -692,7 +692,7 @@ exports.handle_global_notification_updates = function (notification_name, settin
// Update the global settings checked when determining if we should notify
// for a given message. These settings do not affect whether or not a
// particular stream should receive notifications.
if (settings_notifications.notification_settings.indexOf(notification_name) !== -1) {
if (settings_notifications.all_notification_settings_labels.indexOf(notification_name) !== -1) {
page_params[notification_name] = setting;
}