Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose_send_menu_popover: Remove default opts for open_schedule_message_menu.
Evy Kassirer5d90f509f587
diff --git a/web/src/compose_send_menu_popover.ts b/web/src/compose_send_menu_popover.tsindex 82550b499c2..a9779fdd497 100644--- a/web/src/compose_send_menu_popover.ts+++ b/web/src/compose_send_menu_popover.ts@@ -31,8 +31,8 @@ function set_compose_box_schedule(element: HTMLElement): number {}export function open_schedule_message_menu(- remind_message_id: number | undefined = undefined,- target: tippy.ReferenceElement = util.the($("#send_later i")),+ remind_message_id: number | undefined,+ target: tippy.ReferenceElement,): void {if (remind_message_id === undefined && !compose_validate.validate(true)) {return;@@ -262,7 +262,7 @@ export function initialize(): void {// Handle Send later clicks$popper.one("click", ".open_send_later_modal", () => {popover_menus.hide_current_popover_if_visible(instance);- open_schedule_message_menu();+ open_schedule_message_menu(undefined, util.the($("#send_later i")));});$popper.one("click", ".compose_new_message", () => {drafts.update_draft();diff --git a/web/src/compose_setup.js b/web/src/compose_setup.jsindex 25d1c38e953..b35e73d86c3 100644--- a/web/src/compose_setup.js+++ b/web/src/compose_setup.js@@ -38,6 +38,7 @@ import {get_timestamp_for_flatpickr} from "./timerender.ts";import * as ui_report from "./ui_report.ts";import * as upload from "./upload.ts";import * as user_topics from "./user_topics.ts";+import * as util from "./util.ts";import * as widget_modal from "./widget_modal.ts";export function abort_xhr() {@@ -138,7 +139,10 @@ export function initialize() {if (is_edit_input) {message_edit.save_message_row_edit($row);} else if (event.target.dataset.validationTrigger === "schedule") {- compose_send_menu_popover.open_schedule_message_menu();+ compose_send_menu_popover.open_schedule_message_menu(+ undefined,+ util.the($("#send_later i")),+ );// We need to set this flag to true here because `open_schedule_message_menu` validates the message and sets// the user acknowledged wildcard flag back to 'false' and we don't want that to happen because then it