mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
compose_reply: Remove unnecessary pm_recipient being set.
`pm_recipient` is already set in `else` case unconditionally, so setting it early is not required.
This commit is contained in:
@@ -97,9 +97,7 @@ export function respond_to_message(opts) {
|
|||||||
if (msg_type === "stream") {
|
if (msg_type === "stream") {
|
||||||
stream_id = message.stream_id;
|
stream_id = message.stream_id;
|
||||||
topic = message.topic;
|
topic = message.topic;
|
||||||
} else {
|
} else if (opts.reply_type === "personal") {
|
||||||
pm_recipient = message.reply_to;
|
|
||||||
if (opts.reply_type === "personal") {
|
|
||||||
// reply_to for direct messages is everyone involved, so for
|
// reply_to for direct messages is everyone involved, so for
|
||||||
// personals replies we need to set the direct message
|
// personals replies we need to set the direct message
|
||||||
// recipient to just the sender
|
// recipient to just the sender
|
||||||
@@ -107,7 +105,6 @@ export function respond_to_message(opts) {
|
|||||||
} else {
|
} else {
|
||||||
pm_recipient = people.pm_reply_to(message);
|
pm_recipient = people.pm_reply_to(message);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
compose_actions.start(msg_type, {
|
compose_actions.start(msg_type, {
|
||||||
stream_id,
|
stream_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user