settings_components: Refactor code in check_property_changed.

This commit updates code in check_property_changed to handle
all time limit settings in the same switch case.
This commit is contained in:
Sahil Batra 2024-02-08 19:25:18 +05:30 committed by Tim Abbott
parent 40ce7d3df5
commit a6cc9acb22
1 changed files with 0 additions and 2 deletions

View File

@ -537,8 +537,6 @@ export function check_property_changed(elem, for_realm_default_settings, sub, gr
proposed_val = get_dropdown_list_widget_setting_value($elem); proposed_val = get_dropdown_list_widget_setting_value($elem);
break; break;
case "email_notifications_batching_period_seconds": case "email_notifications_batching_period_seconds":
proposed_val = get_time_limit_setting_value($elem, false);
break;
case "realm_message_content_edit_limit_seconds": case "realm_message_content_edit_limit_seconds":
case "realm_message_content_delete_limit_seconds": case "realm_message_content_delete_limit_seconds":
case "realm_move_messages_between_streams_limit_seconds": case "realm_move_messages_between_streams_limit_seconds":