Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Fix absent save/discard widget for empty message retention.

Sayam Samal154bb67f9f67
diff --git a/web/src/settings_components.ts b/web/src/settings_components.ts
index 415bd818155..e407101b34f 100644
--- a/web/src/settings_components.ts
+++ b/web/src/settings_components.ts
@@ -371,9 +371,6 @@ function get_message_retention_setting_value(
.parent()
.find<HTMLInputElement>(".message-retention-setting-custom-input")
.val()!;
- if (custom_input_val.length === 0) {
- return settings_config.retain_message_forever;
- }
return util.check_time_input(custom_input_val);
}