mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +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:
@@ -5039,11 +5039,6 @@ def do_change_notification_settings(
|
||||
send_event(user_profile.realm, event, [user_profile.id])
|
||||
|
||||
|
||||
def do_change_enter_sends(user_profile: UserProfile, enter_sends: bool) -> None:
|
||||
user_profile.enter_sends = enter_sends
|
||||
user_profile.save(update_fields=["enter_sends"])
|
||||
|
||||
|
||||
def do_set_user_display_setting(
|
||||
user_profile: UserProfile, setting_name: str, setting_value: Union[bool, str, int]
|
||||
) -> None:
|
||||
|
||||
Reference in New Issue
Block a user