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

Commit 522d58e

Browse files
committed
Add fake fallback thumbnail URL for encrypted videos
Signed-off-by: Tulir Asokan <[email protected]>
1 parent cd39474 commit 522d58e

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)