popover_menus: Use correct method to close send_later_modal.

Previous method was rightly giving us console warnings.
This commit is contained in:
Aman Agrawal
2023-05-02 07:07:44 +00:00
committed by Tim Abbott
parent a90862566f
commit 9a71a7683f

View File

@@ -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.