Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-13 09:20:13 +02:00
parent 86580f3f20
commit af7769ce93
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790

View File

@ -195,7 +195,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
const thumbWidth = 800; const thumbWidth = 800;
const thumbHeight = 600; const thumbHeight = 600;
const content = this.props.mxEvent.getContent() as IMediaEventContent; const content = this.props.mxEvent.getContent<IMediaEventContent>();
const media = mediaFromContent(content); const media = mediaFromContent(content);
if (media.isEncrypted) { if (media.isEncrypted) {