From 6bff3967118c416f53eb37399e15d7a9e14233e2 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Sat, 22 Apr 2023 07:32:26 +0000 Subject: [PATCH] scheduled_messages: Remove unnecessary compose_fade call. We just need to call clear_compose_box() here similar to when sending a message. --- web/src/scheduled_messages.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/scheduled_messages.js b/web/src/scheduled_messages.js index 05293cb99f..50ffc4652e 100644 --- a/web/src/scheduled_messages.js +++ b/web/src/scheduled_messages.js @@ -4,7 +4,6 @@ import * as channel from "./channel"; import * as compose from "./compose"; import * as compose_actions from "./compose_actions"; import * as compose_banner from "./compose_banner"; -import * as compose_fade from "./compose_fade"; import * as compose_ui from "./compose_ui"; import {$t} from "./i18n"; import * as narrow from "./narrow"; @@ -63,8 +62,7 @@ export function edit_scheduled_message(scheduled_msg_id) { } overlays.close_overlay("scheduled"); - compose_fade.clear_compose(); - compose.clear_preview_area(); + compose.clear_compose_box(); compose_actions.start(compose_args.type, compose_args); compose_ui.autosize_textarea($("#compose-textarea")); $("#compose-textarea").attr("data-scheduled-message-id", scheduled_msg_id);