Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose_recipient: Rename funciton open_compose_recipient_dropdown.

Emil Grehn83a121c7e4f3
diff --git a/web/src/compose_actions.ts b/web/src/compose_actions.ts
index dacca07fa22..88558090869 100644
--- a/web/src/compose_actions.ts
+++ b/web/src/compose_actions.ts
@@ -334,7 +334,7 @@ export let start = (raw_opts: ComposeActionsStartOpts): void => {
} else {
// Open stream selection dropdown if no stream is selected.
compose_state.set_stream_id("");
- compose_recipient.open_compose_recipient_dropdown();
+ compose_recipient.toggle_compose_recipient_dropdown();
}
compose_state.topic(opts.topic);
diff --git a/web/src/compose_recipient.ts b/web/src/compose_recipient.ts
index c5ca2c7f31f..e4e038a3be5 100644
--- a/web/src/compose_recipient.ts
+++ b/web/src/compose_recipient.ts
@@ -285,7 +285,7 @@ function get_options_for_recipient_widget(): Option[] {
return options;
}
-export function open_compose_recipient_dropdown(): void {
+export function toggle_compose_recipient_dropdown(): void {
$("#compose_select_recipient_widget").trigger("click");
}
diff --git a/web/src/compose_reply.ts b/web/src/compose_reply.ts
index cf48828838f..febb5fafdf8 100644
--- a/web/src/compose_reply.ts
+++ b/web/src/compose_reply.ts
@@ -264,7 +264,7 @@ export function quote_message(opts: {
stream_id,
private_message_recipient: people.pm_reply_to(message) ?? "",
});
- compose_recipient.open_compose_recipient_dropdown();
+ compose_recipient.toggle_compose_recipient_dropdown();
} else {
if ($textarea.attr("id") === "compose-textarea" && !compose_state.has_message_content()) {
// The user has not started typing a message,
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index 44af6b58ce6..09e97afe423 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -653,7 +653,7 @@ export function process_shift_tab_key() {
}
if ($("input#stream_message_recipient_topic").is(":focus")) {
- compose_recipient.open_compose_recipient_dropdown();
+ compose_recipient.toggle_compose_recipient_dropdown();
return true;
}