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: Have at least 1 new line before and after an attachment.

N-Shar-ma64ec5039943e
diff --git a/web/src/upload.js b/web/src/upload.js
index b3077532e01..e2bedcdb049 100644
--- a/web/src/upload.js
+++ b/web/src/upload.js
@@ -183,6 +183,8 @@ export async function upload_files(uppy, config, files) {
compose_ui.insert_syntax_and_focus(
get_translated_status(file),
get_item("textarea", config),
+ "block",
+ 1,
);
compose_ui.autosize_textarea(get_item("textarea", config));
uppy.addFile({