mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user