mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 07:21:23 +00:00
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:
committed by
Tim Abbott
parent
9f9d5b2f98
commit
1f0906aef7
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user