From 0524e1b40dda96164e79e7be4189597e15bbf97f Mon Sep 17 00:00:00 2001 From: evykassirer Date: Tue, 26 Apr 2022 16:23:44 -0700 Subject: [PATCH] compose: Rename show_box to show_compose_box. This lets us remove a comment to clarify this. --- static/js/compose_actions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/js/compose_actions.js b/static/js/compose_actions.js index 1dc51d05a8..378b7bf4a5 100644 --- a/static/js/compose_actions.js +++ b/static/js/compose_actions.js @@ -78,8 +78,7 @@ export function set_focus(msg_type, opts) { } } -// Show the compose box. -function show_box(msg_type, opts) { +function show_compose_box(msg_type, opts) { if (msg_type === "stream") { $("#private-message").hide(); $("#stream-message").show(); @@ -313,7 +312,7 @@ export function start(msg_type, opts) { compose_state.set_message_type(msg_type); // Show either stream/topic fields or "You and" field. - show_box(msg_type, opts); + show_compose_box(msg_type, opts); // Show a warning if topic is resolved compose_validate.warn_if_topic_resolved(true);