mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Merge pull request #6456 from matrix-org/dbkr/fix_images_without_thumbnail
Fix display of image messages that lack thumbnails
This commit is contained in:
commit
46646eed06
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ export class MediaEventHelper implements IDestroyable {
|
|||
private prepareThumbnailUrl = async () => {
|
||||
if (this.media.isEncrypted) {
|
||||
const blob = await this.thumbnailBlob.value;
|
||||
if (blob === null) return null;
|
||||
return URL.createObjectURL(blob);
|
||||
} else {
|
||||
return this.media.thumbnailHttp;
|
||||
|
|
Loading…
Reference in a new issue