mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
Fix totally backwards comparison and don't recompute the result.
(imported from commit 90b6711b668449aa550e1fdd6412030866e459aa)
This commit is contained in:
parent
67c08dfaf2
commit
19a0e4a690
@ -130,12 +130,8 @@ function respond_to_zephyr() {
|
||||
// Until we allow sending zephyrs based on multiple meaningful
|
||||
// representations of a user (name, username, email, etc.), just
|
||||
// deal with emails.
|
||||
recipient = zephyr.display_recipient;
|
||||
if (recipient === email) { // that is, we sent the original message
|
||||
recipient = zephyr.sender_email;
|
||||
}
|
||||
show_compose('personal', $("#new_zephyr"));
|
||||
$("#huddle_recipient").val(recipient);
|
||||
$("#huddle_recipient").val(zephyr.reply_to);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -391,10 +387,10 @@ function add_zephyr_metadata(dummy, zephyr) {
|
||||
case 'personal':
|
||||
zephyr.is_personal = true;
|
||||
|
||||
if (zephyr.display_recipient === email) { // that is, we sent the original message
|
||||
zephyr.reply_to = zephyr.sender_email;
|
||||
} else {
|
||||
if (zephyr.sender_email === email) { // that is, we sent the original message
|
||||
zephyr.reply_to = zephyr.display_recipient;
|
||||
} else {
|
||||
zephyr.reply_to = zephyr.sender_email;
|
||||
}
|
||||
zephyr.display_reply_to = zephyr.reply_to;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user