This commit is contained in:
the-djmaze 2022-02-13 12:58:01 +01:00
parent 182aee6bb8
commit 803113568f

View file

@ -402,7 +402,6 @@ export class MessageModel extends AbstractModel {
oAttachment.isInline(found); oAttachment.isInline(found);
oAttachment.isLinked(found || result.foundContentLocationUrls.includes(oAttachment.contentLocation)); oAttachment.isLinked(found || result.foundContentLocationUrls.includes(oAttachment.contentLocation));
}); });
this.hasAttachments(oAttachments.hasVisible());
body.innerHTML = result.html; body.innerHTML = result.html;
@ -472,6 +471,7 @@ export class MessageModel extends AbstractModel {
} }
initView() { initView() {
this.hasAttachments(this.attachments().hasVisible());
// init BlockquoteSwitcher // init BlockquoteSwitcher
this.body.querySelectorAll('blockquote:not(.rl-bq-switcher)').forEach(node => { this.body.querySelectorAll('blockquote:not(.rl-bq-switcher)').forEach(node => {
if (node.textContent.trim() && !node.parentNode.closest('blockquote')) { if (node.textContent.trim() && !node.parentNode.closest('blockquote')) {