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 topic is not set.

100RABHpy0713484cfc10
diff --git a/static/js/drafts.js b/static/js/drafts.js
index ecc75f3f12b..58b27b1ec91 100644
--- a/static/js/drafts.js
+++ b/static/js/drafts.js
@@ -187,7 +187,7 @@ export function restore_draft(draft_id) {
const compose_args = restore_message(draft);
if (compose_args.type === "stream") {
- if (draft.stream !== "") {
+ if (draft.stream !== "" && draft.topic !== "") {
narrow.activate(
[
{operator: "stream", operand: compose_args.stream},