Null-guard m.video info

Fixes https://github.com/vector-im/riot-web/issues/4423
pull/21833/head
lukebarnard 2017-06-26 22:22:03 +01:00
parent 447f93ba73
commit fbaa3de28b
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ module.exports = React.createClass({
const content = this.props.mxEvent.getContent();
if (content.file !== undefined) {
return this.state.decryptedThumbnailUrl;
} else if (content.info.thumbnail_url) {
} else if (content.info && content.info.thumbnail_url) {
return MatrixClientPeg.get().mxcUrlToHttp(content.info.thumbnail_url);
} else {
return null;