diff --git a/web/src/popover_menus.js b/web/src/popover_menus.js index 11170532bb..75530a6ff1 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");