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: Fix bug in draft when stream is not set.

100RABHpy5df6f6f0c1e3
diff --git a/static/js/drafts.js b/static/js/drafts.js
index 58b27b1ec91..70ab6bed239 100644
--- a/static/js/drafts.js
+++ b/static/js/drafts.js
@@ -208,10 +208,6 @@ export function restore_draft(draft_id) {
overlays.close_overlay("drafts");
compose_fade.clear_compose();
compose.clear_preview_area();
-
- if (draft.type === "stream" && draft.stream === "") {
- compose_args.topic = "";
- }
compose_actions.start(compose_args.type, compose_args);
compose_ui.autosize_textarea($("#compose-textarea"));
$("#compose-textarea").data("draft-id", draft_id);