Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
modals: Rename close_modal_if_open to close_if_open.
Aman Agrawalc809abf07f87
diff --git a/web/src/modals.ts b/web/src/modals.tsindex ffe6eb0d97a..56e114dfd50 100644--- a/web/src/modals.ts+++ b/web/src/modals.ts@@ -207,9 +207,9 @@ export function close_modal(modal_id: string, conf: Pick<ModalConfig, "on_hiddenMicromodal.close(modal_id);}-export function close_modal_if_open(modal_id: string): void {+export function close_if_open(modal_id: string): void {if (modal_id === undefined) {- blueslip.error("Undefined id was passed into close_modal_if_open");+ blueslip.error("Undefined id was passed into close_if_open");return;}diff --git a/web/src/scheduled_messages_popover.js b/web/src/scheduled_messages_popover.jsindex 01d452e8cea..d071c323556 100644--- a/web/src/scheduled_messages_popover.js+++ b/web/src/scheduled_messages_popover.js@@ -100,7 +100,7 @@ export function open_send_later_menu() {}export function do_schedule_message(send_at_time) {- modals.close_modal_if_open("send_later_modal");+ modals.close_if_open("send_later_modal");if (!Number.isInteger(send_at_time)) {// Convert to timestamp if this is not a timestamp.diff --git a/web/src/user_profile.js b/web/src/user_profile.jsindex 8f6aca674c7..0814774a1ec 100644--- a/web/src/user_profile.js+++ b/web/src/user_profile.js@@ -294,7 +294,7 @@ export function get_custom_profile_field_data(user, field, field_types) {export function hide_user_profile() {user_streams_list_widget = undefined;- modals.close_modal_if_open("user-profile-modal");+ modals.close_if_open("user-profile-modal");}function show_manage_user_tab(target) {