compose: Have at least 1 new line before and after a video call link.

Until now, a video call link was inserted in an inline manner, but now
we insert it as a block, with 0 blank lines before and after it.
This commit is contained in:
N-Shar-ma
2023-04-05 21:47:40 +05:30
committed by Tim Abbott
parent 9d4cec6e87
commit 2961da5ea0

View File

@@ -374,7 +374,7 @@ export function update_email(user_id, new_email) {
function insert_video_call_url(url, target_textarea) {
const link_text = $t({defaultMessage: "Click to join video call"});
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea);
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea, "block", 1);
}
export function render_and_show_preview($preview_spinner, $preview_content_box, content) {