Merge pull request #12467 from pateljannat/email-recipient-through-reply-all

fix: Email recipient through reply all
This commit is contained in:
mergify[bot] 2021-02-24 10:02:02 +00:00 committed by GitHub
commit 3f817a6d4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,10 +358,11 @@ class FormTimeline extends BaseTimeline {
const args = {
doc: this.frm.doc,
frm: this.frm,
recipients: communication_doc ? communication_doc.sender : this.get_recipient(),
recipients: communication_doc && communication_doc.sender != frappe.session.user_email ? communication_doc.sender : this.get_recipient(),
is_a_reply: Boolean(communication_doc),
title: communication_doc ? __('Reply') : null,
last_email: communication_doc
last_email: communication_doc,
subject: communication_doc && communication_doc.subject
};
if (communication_doc && reply_all) {