diff --git a/dev/Model/Message.js b/dev/Model/Message.js index 2e21b39b2..b9759d155 100644 --- a/dev/Model/Message.js +++ b/dev/Model/Message.js @@ -495,7 +495,7 @@ export class MessageModel extends AbstractModel { // init BlockquoteSwitcher this.body.querySelectorAll('blockquote:not(.rl-bq-switcher)').forEach(node => { node.removeAttribute('style') - if (node.textContent.trim() && !node.parentNode.closest('blockquote')) { + if (node.textContent.trim() && !node.parentNode.closest?.('blockquote')) { let h = node.clientHeight || getRealHeight(node); if (0 === h || 100 < h) { const el = Element.fromHTML('•••');