Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Use '/settings' endpoint for changing notification settings.

sahil839b5b7862571ce
diff --git a/static/js/settings_account.js b/static/js/settings_account.js
index b411fcfe865..71d5cc7b008 100644
--- a/static/js/settings_account.js
+++ b/static/js/settings_account.js
@@ -691,7 +691,7 @@ export function set_up() {
const data = {presence_enabled: $("#presence_enabled").prop("checked")};
settings_ui.do_settings_change(
channel.patch,
- "/json/settings/notifications",
+ "/json/settings",
data,
$(".privacy-setting-status").expectOne(),
);
diff --git a/static/js/settings_notifications.js b/static/js/settings_notifications.js
index 20063430ed4..f694df9d7f7 100644
--- a/static/js/settings_notifications.js
+++ b/static/js/settings_notifications.js
@@ -46,12 +46,7 @@ function rerender_ui() {
function change_notification_setting(setting, value, status_element) {
const data = {};
data[setting] = value;
- settings_ui.do_settings_change(
- channel.patch,
- "/json/settings/notifications",
- data,
- status_element,
- );
+ settings_ui.do_settings_change(channel.patch, "/json/settings", data, status_element);
}
function update_desktop_icon_count_display() {