settings: Fix live-update of setting elements.

Some of the group setting elements were not live-updated
correctly since they were not present in realm_settings
dict and sync_realm_settings is only called for settings
present in that dict.
This commit is contained in:
Sahil Batra 2024-10-30 17:26:33 +05:30 committed by Tim Abbott
parent 072da3b0d3
commit 891e58bb1a
1 changed files with 6 additions and 0 deletions

View File

@ -210,9 +210,15 @@ export function dispatch_normal_event(event) {
allow_message_editing: noop,
avatar_changes_disabled: settings_account.update_avatar_change_display,
bot_creation_policy: settings_bots.update_bot_permissions_ui,
can_add_custom_emoji_group: noop,
can_create_groups: noop,
can_create_private_channel_group: noop,
can_create_public_channel_group: noop,
can_delete_any_message_group: noop,
can_delete_own_message_group: noop,
can_manage_all_groups: noop,
can_move_messages_between_channels_group: noop,
can_move_messages_between_topics_group: noop,
create_multiuse_invite_group: noop,
invite_to_stream_policy: noop,
default_code_block_language: noop,