mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
refactor: Refactor the compose placeholder text function.
This is a prep commit. Refactoring this makes it easier to reuse these functions in other places without having to create the `opts` object again.
This commit is contained in:
@@ -1222,13 +1222,7 @@ exports.initialize = function () {
|
||||
});
|
||||
|
||||
$("#compose-textarea").on("focus", () => {
|
||||
const opts = {
|
||||
message_type: compose_state.get_message_type(),
|
||||
stream: $("#stream_message_recipient_stream").val(),
|
||||
topic: $("#stream_message_recipient_topic").val(),
|
||||
private_message_recipient: compose_pm_pill.get_emails(),
|
||||
};
|
||||
compose_actions.update_placeholder_text(opts);
|
||||
compose_actions.update_placeholder_text();
|
||||
});
|
||||
|
||||
if (page_params.narrow !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user