compose_call_ui: Rename target_textarea to $target_textarea.

This commit is contained in:
afeefuddin 2024-05-29 18:41:25 +05:30 committed by Tim Abbott
parent 9cf9cec43a
commit 7b5ccf0c98
1 changed files with 4 additions and 4 deletions

View File

@ -36,18 +36,18 @@ export function update_audio_chat_button_display(): void {
function insert_video_call_url(
url: string,
target_textarea: JQuery<HTMLTextAreaElement> | undefined,
$target_textarea: JQuery<HTMLTextAreaElement> | undefined,
): void {
const link_text = $t({defaultMessage: "Join video call."});
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea, "block", 1);
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, $target_textarea, "block", 1);
}
function insert_audio_call_url(
url: string,
target_textarea: JQuery<HTMLTextAreaElement> | undefined,
$target_textarea: JQuery<HTMLTextAreaElement> | undefined,
): void {
const link_text = $t({defaultMessage: "Join voice call."});
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea, "block", 1);
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, $target_textarea, "block", 1);
}
export function generate_and_insert_audio_or_video_call_link(