mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	settings: Use '/settings' endpoint for changing notification settings.
We have merged the '/settings/display' and 'settings/notifications' endpoints to '/settings' in backend. This commit updates the frontend code to '/settings' endpoint for updating notification settings instead of '/settings/notifications' endpoint.
This commit is contained in:
		@@ -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(),
 | 
			
		||||
        );
 | 
			
		||||
 
 | 
			
		||||
@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user