aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/utils/embed.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/utils/embed.js')
-rw-r--r--vnext/src/utils/embed.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/vnext/src/utils/embed.js b/vnext/src/utils/embed.js
index 4501168b..59290227 100644
--- a/vnext/src/utils/embed.js
+++ b/vnext/src/utils/embed.js
@@ -395,7 +395,10 @@ export function embedAll() {
let beforeNodeSelector = '.msg-txt + *'
let allLinksSelector = '.msg-txt a'
Array.from(document.querySelectorAll('#content .msg-cont')).forEach(msg => {
- embedLinksToX(msg, beforeNodeSelector, allLinksSelector)
+ let hasMedia = msg.querySelector('.msg-media') || msg.querySelector('.ir')
+ if (!hasMedia) {
+ embedLinksToX(msg, beforeNodeSelector, allLinksSelector)
+ }
})
}
/**