fix encrypted video not rendering

This commit is contained in:
Ajay Bura 2026-08-23 18:39:30 +05:30
commit 73c4caf2e1

View file

@ -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') {