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:
Sahil Batra
2021-07-27 01:25:14 +05:30
committed by Tim Abbott
parent dafd32bd09
commit 355f6e9b53
8 changed files with 26 additions and 13 deletions

View File

@@ -1351,6 +1351,7 @@ class UserBaseSettings(models.Model):
demote_inactive_streams=int,
dense_mode=bool,
emojiset=str,
enter_sends=bool,
fluid_layout_width=bool,
high_contrast_mode=bool,
left_side_userlist=bool,