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.

message_forwarding: Fix bug with forward message in combined feed.

Emil Grehn57c8120a0949
diff --git a/web/src/compose_reply.ts b/web/src/compose_reply.ts
index aaeb01c1d18..cf48828838f 100644
--- a/web/src/compose_reply.ts
+++ b/web/src/compose_reply.ts
@@ -250,8 +250,10 @@ export function quote_message(opts: {
if (opts.forward_message) {
let topic = "";
+ let stream_id: number | undefined;
if (message.is_stream) {
topic = message.topic;
+ stream_id = message.stream_id;
}
compose_actions.start({
@@ -259,6 +261,8 @@ export function quote_message(opts: {
topic,
keep_composebox_empty: opts.keep_composebox_empty,
content: quoting_placeholder,
+ stream_id,
+ private_message_recipient: people.pm_reply_to(message) ?? "",
});
compose_recipient.open_compose_recipient_dropdown();
} else {