Fixed styling + removed log line

pull/21833/head
Will Hunt 2017-03-02 13:39:56 +00:00
parent 1995c16013
commit 4b5e8d66b8
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,8 @@ module.exports = React.createClass({
return (
content &&
content.info &&
content.info.mimetype === "image/gif");
content.info.mimetype === "image/gif"
);
},
onImageEnter: function(e) {
@ -104,9 +105,8 @@ module.exports = React.createClass({
_getThumbUrl: function() {
const content = this.props.mxEvent.getContent();
console.log(content);
if (content.file !== undefined) {
// Don't use the thumbnail for client's wishing to autoplay gifs.
// Don't use the thumbnail for clients wishing to autoplay gifs.
if (this.state.decryptedThumbnailUrl) {
return this.state.decryptedThumbnailUrl;
}