From 9b82830c369bbac533c834e83c04b0fa96f5f08b Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 15 Feb 2022 11:05:01 +0100 Subject: [PATCH] Improved bug #228 --- dev/Model/Message.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dev/Model/Message.js b/dev/Model/Message.js index 21fe4efe0..f3a0b839c 100644 --- a/dev/Model/Message.js +++ b/dev/Model/Message.js @@ -73,7 +73,6 @@ export class MessageModel extends AbstractModel { isHtml: false, hasImages: false, hasExternals: false, - hasAttachments: false, pgpSigned: null, pgpEncrypted: null, @@ -95,6 +94,7 @@ export class MessageModel extends AbstractModel { attachmentIconClass: () => FileInfo.getAttachmentsIconClass(this.attachments()), threadsLen: () => this.threads().length, isImportant: () => MessagePriority.High === this.priority(), + hasAttachments: () => this.attachments().hasVisible() isDeleted: () => this.flags().includes('\\deleted'), isUnseen: () => !this.flags().includes('\\seen') /* || this.flags().includes('\\unseen')*/, @@ -150,7 +150,6 @@ export class MessageModel extends AbstractModel { this.isHtml(false); this.hasImages(false); this.hasExternals(false); - this.hasAttachments(false); this.attachments(new AttachmentCollectionModel); this.pgpSigned(null); @@ -471,7 +470,6 @@ export class MessageModel extends AbstractModel { } initView() { - this.hasAttachments(this.attachments().hasVisible()); // init BlockquoteSwitcher this.body.querySelectorAll('blockquote:not(.rl-bq-switcher)').forEach(node => { if (node.textContent.trim() && !node.parentNode.closest('blockquote')) { @@ -552,7 +550,6 @@ export class MessageModel extends AbstractModel { this.priority(message.priority()); this.hasExternals(message.hasExternals()); - this.hasAttachments(message.hasAttachments()); this.emails = message.emails;