groups: Remove list specifying group settings with new API format.

All the groups are now following the new API format, making the list
redundant.
This commit is contained in:
Shubham Padia
2024-10-22 10:42:14 +00:00
committed by Tim Abbott
parent 9f9d5b2f98
commit 1f0906aef7
6 changed files with 67 additions and 112 deletions

View File

@@ -1043,7 +1043,7 @@ export function populate_data_for_realm_settings_request(
continue;
}
const realm_group_settings_using_new_api_format = new Set([
const realm_group_settings = new Set([
"can_access_all_users_group",
"can_add_custom_emoji_group",
"can_create_groups",
@@ -1058,7 +1058,7 @@ export function populate_data_for_realm_settings_request(
"direct_message_initiator_group",
"direct_message_permission_group",
]);
if (realm_group_settings_using_new_api_format.has(property_name)) {
if (realm_group_settings.has(property_name)) {
const old_value = get_realm_settings_property_value(
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
("realm_" + property_name) as RealmSettingProperty,