Null-guard m.video info
Fixes https://github.com/vector-im/riot-web/issues/4423
This commit is contained in:
parent
447f93ba73
commit
fbaa3de28b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue