fix(mail): don't render SVG attachments

Fix #5371
This commit is contained in:
Francis Lachapelle committed 2021-08-03 16:26:49 -04:00
1 parent a23fef66ba
commit 40b570cc12
4 files changed
+17 -13

No files matched your search

@@ -81,7 +81,7 @@
partSrc = angular.element(this.message.$content()[partIndex].content).find('img')[0].src;
var images = _.filter(this.message.attachmentAttrs, function(attrs) {
return attrs.mimetype.indexOf('image/') === 0;
return attrs.mimetype.indexOf('image/') === 0 && attrs.mimetype.indexOf('svg+xml') < 0;
});
var selectedIndex = _.findIndex(images, function(image) {