fix: Check if signature already exist
This commit is contained in:
parent
ca85524f91
commit
abb479f89f
1 changed files with 4 additions and 1 deletions
|
|
@ -747,7 +747,10 @@ frappe.views.CommunicationComposer = class {
|
|||
this.content_set = true;
|
||||
}
|
||||
|
||||
message += await this.get_signature(sender_email || null);
|
||||
const signature = await this.get_signature(sender_email || "");
|
||||
if (!this.content_set || !strip_html(message).includes(strip_html(signature))) {
|
||||
message += signature;
|
||||
}
|
||||
|
||||
if (this.is_a_reply && !this.reply_set) {
|
||||
message += this.get_earlier_reply();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue