Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Delete drafts with attachments.
Sahil Singhd05f67213213
diff --git a/static/js/compose.js b/static/js/compose.jsindex 924b8b11754..6ae42bb0296 100644--- a/static/js/compose.js+++ b/static/js/compose.js@@ -203,6 +203,9 @@ export function clear_compose_box() {export function send_message_success(local_id, message_id, locally_echoed) {if (!locally_echoed) {+ if ($("#compose-textarea").data("draft-id")) {+ drafts.draft_model.deleteDraft($("#compose-textarea").data("draft-id"));+ }clear_compose_box();}