From 803113568f7131ff1d9df7773fbb59ddd80c19cc Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 13 Feb 2022 12:58:01 +0100 Subject: [PATCH] Resolve #228 --- dev/Model/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Model/Message.js b/dev/Model/Message.js index 29eb0c23e..8b2e65b0a 100644 --- a/dev/Model/Message.js +++ b/dev/Model/Message.js @@ -402,7 +402,6 @@ export class MessageModel extends AbstractModel { oAttachment.isInline(found); oAttachment.isLinked(found || result.foundContentLocationUrls.includes(oAttachment.contentLocation)); }); - this.hasAttachments(oAttachments.hasVisible()); body.innerHTML = result.html; @@ -472,6 +471,7 @@ 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')) {