Fix types and precompute blob sizes to avoid overflows
This commit is contained in:
parent
ed93bf4c77
commit
f07402d234
5 changed files with 31 additions and 21 deletions
|
@ -179,7 +179,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
|||
};
|
||||
|
||||
protected getContentUrl(): string {
|
||||
const content = this.props.mxEvent.getContent();
|
||||
const content: IMediaEventContent= this.props.mxEvent.getContent();
|
||||
if (this.props.forExport) return content.url || content.file.url;
|
||||
const media = mediaFromContent(content);
|
||||
if (media.isEncrypted) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue