Bugfix: failed to set message data from dom

This commit is contained in:
djmaze 2020-11-05 10:38:17 +01:00
parent ff2a557f1e
commit 2c40475bfa
2 changed files with 1 additions and 2 deletions

View file

@ -476,7 +476,6 @@ class MessageModel extends AbstractModel {
node.loading = 'lazy';
}
node.src = node.getAttribute(attr);
node.removeAttribute('data-loaded');
});
attr = this.externalProxy ? 'data-x-additional-style-url' : 'data-x-style-url';

View file

@ -494,8 +494,8 @@ class MessageUserStore {
const textBody = document.getElementById(id);
if (textBody) {
textBody.rlCacheCount = ++iMessageBodyCacheCount;
message.fetchDataFromDom();
message.body = textBody;
message.fetchDataFromDom();
} else {
let isHtml = false;
if (json.Html) {