This commit is contained in:
Jaiwanth 2021-08-14 00:14:57 +05:30
parent 5c78acfca4
commit 3efa699b88
7 changed files with 23 additions and 22 deletions

View file

@ -78,6 +78,7 @@ export default class MVideoBody extends React.PureComponent<IBodyProps, IState>
private getContentUrl(): string|null {
const content = this.props.mxEvent.getContent<IMediaEventContent>();
// During export, the content url will point to the MSC, which will later point to a local url
if (this.props.forExport) return content.file?.url || content.url;
const media = mediaFromContent(content);
if (media.isEncrypted) {