Skip to content

Commit

Permalink
fix(compose): Only add one signature to a composed email
Browse files Browse the repository at this point in the history
  • Loading branch information
castaway committed Apr 29, 2024
1 parent 053df50 commit c6d8df8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/compose/compose.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,13 @@ export class ComposeComponent implements AfterViewInit, OnDestroy, OnInit {
if ( !this.has_pasted_signature && from.signature ) {
this.has_pasted_signature = true;
this.signature = from.signature;
this.model.msg_body = this.signature.concat('\n\n', this.model.msg_body);
if ( from.is_signature_html ) {
this.model.useHTML = true;
this.model.html = this.signature.concat('\n\n', this.model.html || this.model.msg_body);
} else {
this.model.msg_body = this.signature.concat('\n\n', this.model.msg_body);
}

}
}
if (this.composeInHTMLByDefault) {
Expand Down

0 comments on commit c6d8df8

Please sign in to comment.