settings: Fix live update of realm group settings.

For some settings, their value in "realm" object and the
corresponding dropdown or pill widget for them were not
being live updated on receiving the event.
This commit is contained in:
Sahil Batra
2025-03-12 20:05:51 +05:30
committed by Tim Abbott
parent fbee7db9f1
commit c62204ac50

View File

@@ -215,16 +215,20 @@ export function dispatch_normal_event(event) {
const realm_settings = {
allow_message_editing: noop,
avatar_changes_disabled: settings_account.update_avatar_change_display,
can_access_all_users_group: noop,
can_add_custom_emoji_group: noop,
can_add_subscribers_group: noop,
can_create_bots_group: noop,
can_create_groups: noop,
can_create_private_channel_group: noop,
can_create_public_channel_group: noop,
can_create_web_public_channel_group: noop,
can_create_write_only_bots_group: noop,
can_delete_any_message_group: noop,
can_delete_own_message_group: noop,
can_invite_users_group: noop,
can_manage_all_groups: noop,
can_manage_billing_group: noop,
can_mention_many_users_group: noop,
can_move_messages_between_channels_group: noop,
can_move_messages_between_topics_group: noop,