mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	settings: Move 'enter_sends' setting to property_types dict.
This commit moves "enter_sends" setting to property_types dict. With this change, changing enter_sends setting also sends an event of type "update_display_settings" and thus enables us to live-update the UI.
This commit is contained in:
		@@ -21,7 +21,6 @@ from zerver.decorator import human_users_only
 | 
			
		||||
from zerver.lib.actions import (
 | 
			
		||||
    check_change_full_name,
 | 
			
		||||
    do_change_avatar_fields,
 | 
			
		||||
    do_change_enter_sends,
 | 
			
		||||
    do_change_notification_settings,
 | 
			
		||||
    do_change_password,
 | 
			
		||||
    do_change_user_delivery_email,
 | 
			
		||||
@@ -275,9 +274,6 @@ def json_change_settings(
 | 
			
		||||
    if timezone is not None and user_profile.timezone != timezone:
 | 
			
		||||
        do_set_user_display_setting(user_profile, "timezone", timezone)
 | 
			
		||||
 | 
			
		||||
    if enter_sends is not None and user_profile.enter_sends != enter_sends:
 | 
			
		||||
        do_change_enter_sends(user_profile, enter_sends)
 | 
			
		||||
 | 
			
		||||
    # TODO: Do this more generally.
 | 
			
		||||
    from zerver.lib.request import get_request_notes
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user