diff --git a/src/frontend/plugins/mail-editor/mail-editor.component.ts b/src/frontend/plugins/mail-editor/mail-editor.component.ts index 8ee013740a6ce6c617c05f321c6b711072f048b9..2765baa0ed90df091ac17ade987c619f8c9da93c 100644 --- a/src/frontend/plugins/mail-editor/mail-editor.component.ts +++ b/src/frontend/plugins/mail-editor/mail-editor.component.ts @@ -442,10 +442,14 @@ export class MailEditorComponent implements OnInit, OnDestroy { } getCopies() { - return this.copies.map((item: any) => { - delete item.badFormat; - return item; - }); + if (this.showCopies) { + return this.copies.map((item: any) => { + delete item.badFormat; + return item; + }); + } else { + return []; + } } setInvisibleCopies(invisibleCopies: any) { @@ -454,10 +458,14 @@ export class MailEditorComponent implements OnInit, OnDestroy { } getInvisibleCopies() { - return this.invisibleCopies.map((item: any) => { - delete item.badFormat; - return item; - }); + if (this.showInvisibleCopies) { + return this.invisibleCopies.map((item: any) => { + delete item.badFormat; + return item; + }); + } else { + return []; + } } isSelectedAttachMail(item: any, type: string) {