From c6d8df81833ac9cc5cecd0ac89b409c2d2e4ed1d Mon Sep 17 00:00:00 2001 From: Jess Robinson Date: Thu, 25 Apr 2024 11:12:47 +0000 Subject: [PATCH] fix(compose): Only add one signature to a composed email --- src/app/compose/compose.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/compose/compose.component.ts b/src/app/compose/compose.component.ts index fe50c67a5..c3e2fb4cb 100644 --- a/src/app/compose/compose.component.ts +++ b/src/app/compose/compose.component.ts @@ -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) {