mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
Null check on thumbnail_file
This commit is contained in:
parent
4a684d01a4
commit
aae3150383
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ module.exports = createReactClass({
|
|||
const content = this.props.mxEvent.getContent();
|
||||
if (content.file !== undefined && this.state.decryptedUrl === null) {
|
||||
let thumbnailPromise = Promise.resolve(null);
|
||||
if (content.info.thumbnail_file) {
|
||||
if (content.info && content.info.thumbnail_file) {
|
||||
thumbnailPromise = decryptFile(
|
||||
content.info.thumbnail_file,
|
||||
).then(function(blob) {
|
||||
|
|
Loading…
Reference in a new issue