Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
scheduled_messages: Avoid hardcoding minimum delay.
Tim Abbotte0f6a7a48dd0
diff --git a/web/src/popover_menus.js b/web/src/popover_menus.jsindex 11170532bb0..75530a6ff10 100644--- a/web/src/popover_menus.js+++ b/web/src/popover_menus.js@@ -852,7 +852,11 @@ export function initialize() {do_schedule_message,new Date(current_time.getTime() + 60 * 60 * 1000),{- minDate: new Date(current_time.getTime() + 5 * 60 * 1000),+ minDate: new Date(+ current_time.getTime() ++ scheduled_messages.MINIMUM_SCHEDULED_MESSAGE_DELAY_SECONDS *+ 1000,+ ),onClose() {// Return to normal state.$send_later_modal_content.css("pointer-events", "all");