From 6ffe2cc815b33132016fbe15a9c8da1a74e9237c Mon Sep 17 00:00:00 2001 From: Balaji2198 Date: Wed, 7 Mar 2018 09:59:59 +0530 Subject: [PATCH] compose: Fix "New Topic" button behaviour auto-populates the current topic. Previously, Clicking a "New Topic" in a topic narrow auto-populates the current topic. Fixes #8608. --- static/js/compose_actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/compose_actions.js b/static/js/compose_actions.js index e0fd335e18..52ac21aab0 100644 --- a/static/js/compose_actions.js +++ b/static/js/compose_actions.js @@ -193,7 +193,7 @@ exports.start = function (msg_type, opts) { opts = fill_in_opts_from_current_narrowed_view(msg_type, opts); // If we are invoked by a compose hotkey (c or C), do not assume that we know // what the message's topic or PM recipient should be. - if (opts.trigger === "compose_hotkey") { + if ((opts.trigger === "compose_hotkey") || (opts.trigger === "new topic button")) { opts.subject = ''; opts.private_message_recipient = ''; }