mirror of
https://github.com/cinnyapp/cinny.git
synced 2026-11-26 03:46:36 -08:00
fix encrypted video not rendering
This commit is contained in:
1 parent
fcb3577cf6
commit
73c4caf2e1
1 file changed
+1
-1
@@ -311,7 +311,7 @@ type MVideoProps = {
|
||||
};
|
||||
export function MVideo({ content, mediaAutoLoad, outlined }: MVideoProps) {
|
||||
const videoInfo = rContent.info(content);
|
||||
const mxcUrl = rEncryptedFile.url(rContent.file) ?? rContent.url(content);
|
||||
const mxcUrl = rEncryptedFile.url(rContent.file(content)) ?? rContent.url(content);
|
||||
const safeMimeType = getBlobSafeMimeType(rInfo.mimetype(videoInfo) ?? '');
|
||||
|
||||
if (!videoInfo || !safeMimeType.startsWith('video') || typeof mxcUrl !== 'string') {
|
||||
|
||||
Reference in new issue
Block a user