From 48340a28176c9856c555b0dacb805c3d7ea23dc3 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 4 Nov 2016 13:13:25 +0000 Subject: [PATCH] Fix unencrypted video thumbnail --- src/components/views/messages/MVideoBody.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/messages/MVideoBody.js b/src/components/views/messages/MVideoBody.js index df707ddcb6..6f9a270800 100644 --- a/src/components/views/messages/MVideoBody.js +++ b/src/components/views/messages/MVideoBody.js @@ -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; } },