Fix unencrypted video thumbnail

This commit is contained in:
Mark Haines 2016-11-04 13:13:25 +00:00
parent 71c002d588
commit 91123431dd

View file

@ -70,8 +70,10 @@ module.exports = React.createClass({
var content = this.props.mxEvent.getContent();
if (content.file !== undefined) {
return this.state.decryptedThumbnailUrl;
} else if (content.info.thumbnail_url) {
return MatrixClientPeg.get().mxcUrlToHttp(content.info.thumbnail_url);
} else {
return MatrixClientPeg.get().mxcUrlToHttp(content.url, 800, 600);
return null;
}
},