settings: Decouple enable_push_notifications_offline from PM setting.

Note that this setting has always applied to both streams and PMs; the test
just clarifies that that is the case.
This commit is contained in:
Rishi Gupta
2019-04-17 18:58:25 -07:00
committed by Tim Abbott
parent 8a2772adcf
commit 29d30ceab7
4 changed files with 20 additions and 21 deletions

View File

@@ -13,12 +13,12 @@ var pm_mention_notification_settings = [
"enable_desktop_notifications",
"enable_offline_email_notifications",
"enable_offline_push_notifications",
"enable_online_push_notifications",
"enable_sounds",
"pm_content_in_desktop_notifications",
];
var other_notification_settings = [
"enable_online_push_notifications",
"notification_sound",
"enable_digest_emails",
"enable_login_emails",
@@ -113,10 +113,6 @@ exports.set_up = function () {
$("#enable_desktop_notifications").change(function () {
settings_ui.disable_sub_setting_onchange(this.checked, "pm_content_in_desktop_notifications", true);
});
$("#enable_offline_push_notifications").change(function () {
settings_ui.disable_sub_setting_onchange(this.checked, "enable_online_push_notifications", true);
});
};
exports.update_page = function () {