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.

popover_menus: Use correct method to close `send_later_modal`.

Aman Agrawal9a71a7683f91
diff --git a/web/src/popover_menus.js b/web/src/popover_menus.js
index e7d4463d864..a1c824f7be0 100644
--- a/web/src/popover_menus.js
+++ b/web/src/popover_menus.js
@@ -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.