compose_state: Make get_or_set accept a full selector.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-11-02 11:29:54 -07:00
committed by Tim Abbott
parent daa34685c3
commit d6be353299
29 changed files with 191 additions and 191 deletions

View File

@@ -124,7 +124,7 @@ export function reply_with_mention(opts) {
}
export function quote_and_reply(opts) {
const $textarea = $("#compose-textarea");
const $textarea = $("textarea#compose-textarea");
const message_id = message_lists.current.selected_id();
const message = message_lists.current.selected_message();
const quoting_placeholder = $t({defaultMessage: "[Quoting…]"});
@@ -159,7 +159,7 @@ export function quote_and_reply(opts) {
content += `${fence}quote\n${message.raw_content}\n${fence}`;
compose_ui.replace_syntax(quoting_placeholder, content, $textarea);
compose_ui.autosize_textarea($("#compose-textarea"));
compose_ui.autosize_textarea($("textarea#compose-textarea"));
}
if (message && message.raw_content) {