Fix unencrypted video thumbnail
This commit is contained in:
parent
b56417f46e
commit
48340a2817
1 changed files with 3 additions and 1 deletions
|
@ -70,8 +70,10 @@ module.exports = React.createClass({
|
||||||
var content = this.props.mxEvent.getContent();
|
var content = this.props.mxEvent.getContent();
|
||||||
if (content.file !== undefined) {
|
if (content.file !== undefined) {
|
||||||
return this.state.decryptedThumbnailUrl;
|
return this.state.decryptedThumbnailUrl;
|
||||||
|
} else if (content.info.thumbnail_url) {
|
||||||
|
return MatrixClientPeg.get().mxcUrlToHttp(content.info.thumbnail_url);
|
||||||
} else {
|
} else {
|
||||||
return MatrixClientPeg.get().mxcUrlToHttp(content.url, 800, 600);
|
return null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue