From a7e6d5d770c6f7ac272002734a9a4fa9ada33de7 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Tue, 29 Oct 2024 16:39:06 +0530 Subject: [PATCH] settings: Remove unused fields passed to settings template. There is no need to pass the value of group settings to template as rendering the UI is handled in JS. This was probably added due to the old enum value setting being passed to the template. --- web/src/admin.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/web/src/admin.js b/web/src/admin.js index 6713c2575e..28014c466d 100644 --- a/web/src/admin.js +++ b/web/src/admin.js @@ -142,8 +142,6 @@ export function build_page() { language_list, realm_default_language_name: get_language_name(realm.realm_default_language), realm_default_language_code: realm.realm_default_language, - realm_direct_message_initiator_group_id: realm.realm_direct_message_initiator_group, - realm_direct_message_permission_group_id: realm.realm_direct_message_permission_group, realm_waiting_period_threshold: realm.realm_waiting_period_threshold, realm_new_stream_announcements_stream_id: realm.realm_new_stream_announcements_stream_id, realm_signup_announcements_stream_id: realm.realm_signup_announcements_stream_id, @@ -184,9 +182,6 @@ export function build_page() { realm_invite_required: realm.realm_invite_required, can_create_user_groups: settings_data.user_can_create_user_groups(), policy_values: settings_config.common_policy_values, - realm_can_delete_any_message_group: realm.realm_can_delete_any_message_group, - realm_can_delete_own_message_group: realm.realm_can_delete_own_message_group, - realm_can_add_custom_emoji_group: realm.realm_can_add_custom_emoji_group, realm_can_add_custom_emoji_group_name: user_groups.get_user_group_from_id( realm.realm_can_add_custom_emoji_group, ).name,