You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Fixed styling + removed log line
This commit is contained in:
@@ -74,7 +74,8 @@ module.exports = React.createClass({
|
|||||||
return (
|
return (
|
||||||
content &&
|
content &&
|
||||||
content.info &&
|
content.info &&
|
||||||
content.info.mimetype === "image/gif");
|
content.info.mimetype === "image/gif"
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
onImageEnter: function(e) {
|
onImageEnter: function(e) {
|
||||||
@@ -104,9 +105,8 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
_getThumbUrl: function() {
|
_getThumbUrl: function() {
|
||||||
const content = this.props.mxEvent.getContent();
|
const content = this.props.mxEvent.getContent();
|
||||||
console.log(content);
|
|
||||||
if (content.file !== undefined) {
|
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) {
|
if (this.state.decryptedThumbnailUrl) {
|
||||||
return this.state.decryptedThumbnailUrl;
|
return this.state.decryptedThumbnailUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user