Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_forwarding: Make forward message keep original topic by default.
Emil Grehn06aab3013325
diff --git a/web/src/compose_reply.ts b/web/src/compose_reply.tsindex 9987b1569dc..aaeb01c1d18 100644--- a/web/src/compose_reply.ts+++ b/web/src/compose_reply.ts@@ -249,10 +249,14 @@ export function quote_message(opts: {: $<HTMLTextAreaElement>("textarea#compose-textarea");if (opts.forward_message) {- // Setting the stream_id to undefined will automatically open the recipient popover+ let topic = "";+ if (message.is_stream) {+ topic = message.topic;+ }+compose_actions.start({message_type: message.type,- topic: "",+ topic,keep_composebox_empty: opts.keep_composebox_empty,content: quoting_placeholder,});diff --git a/web/tests/compose_ui.test.cjs b/web/tests/compose_ui.test.cjsindex 8c42ba27d96..aeb1b636bf9 100644--- a/web/tests/compose_ui.test.cjs+++ b/web/tests/compose_ui.test.cjs@@ -440,7 +440,6 @@ run_test("quote_message", ({override, override_rewire}) => {let new_message = false;override_rewire(compose_actions, "start", (opts) => {assert.equal(opts.message_type, "stream");- assert.equal(opts.topic, "");assert.equal(opts.content, "translated: [Quoting…]");new_message = true;});