From 91123431dd5d35a59f761a1246877a5fc4d49f0a 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; } },