mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
popover_menus: Use correct method to close send_later_modal.
Previous method was rightly giving us console warnings.
This commit is contained in:
@@ -231,7 +231,9 @@ export function toggle_message_actions_menu(message) {
|
||||
}
|
||||
|
||||
export function do_schedule_message(send_at_time) {
|
||||
overlays.close_active_modal();
|
||||
if (overlays.is_modal_open()) {
|
||||
overlays.close_modal("send_later_modal");
|
||||
}
|
||||
|
||||
if (!Number.isInteger(send_at_time)) {
|
||||
// Convert to timestamp if this is not a timestamp.
|
||||
|
||||
Reference in New Issue
Block a user