Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4462ac6

Browse files
authored
Merge pull request #5826 from maunium/fix-no-thumbnail-video
Add fake fallback thumbnail URL for encrypted videos
2 parents 021ceeb + 522d58e commit 4462ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/messages/MVideoBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default class MVideoBody extends React.PureComponent<IProps, IState> {
132132
// enable the play button. Firefox does not seem to care either
133133
// way, so it's fine to do for all browsers.
134134
decryptedUrl: `data:${content?.info?.mimetype},`,
135-
decryptedThumbnailUrl: thumbnailUrl,
135+
decryptedThumbnailUrl: thumbnailUrl || `data:${content?.info?.mimetype},`,
136136
decryptedBlob: null,
137137
});
138138
}

0 commit comments

Comments
 (0)