Treat tiffs like unrecognized files; Chrome doesn't render them (#1901)

This commit is contained in:
Scott Nonnenberg
2017-12-14 17:32:58 -08:00
committed by GitHub
parent 5caee59921
commit 7781f8fa5b
2 changed files with 8 additions and 2 deletions
+2 -1
View File
@@ -130,7 +130,8 @@
return this.model.contentType.startsWith('video/');
},
isImage: function() {
return this.model.contentType.startsWith('image/');
var type = this.model.contentType;
return type.startsWith('image/') && type !== 'image/tiff';
},
mediaType: function() {
if (this.isVoiceMessage()) {