compose: Rename show_box to show_compose_box.

This lets us remove a comment to clarify this.
This commit is contained in:
evykassirer 2022-04-26 16:23:44 -07:00 committed by Tim Abbott
parent ac8d984f7c
commit 0524e1b40d
1 changed files with 2 additions and 3 deletions

View File

@ -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);