message_forwarding: Fix bug with forward message in combined feed.

Forward message previously didn't open the recipient dropdown
when forwarding from the combined feed.

This commit will also make the messages keep their original
channel or pm-recipient when forwarding from combined feed, to
be consistent with the behavior in the rest of the app.
This commit is contained in:
Emil Grehn
2024-12-06 16:21:43 +01:00
committed by Tim Abbott
parent 06aab30133
commit 57c8120a09

View File

@@ -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 {