Don't use as

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-13 08:47:37 +02:00
parent 04098dc74c
commit b5baf404be
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790

View File

@ -39,7 +39,7 @@ export default class MImageReplyBody extends MImageBody {
return super.render();
}
const content = this.props.mxEvent.getContent() as IMediaEventContent;
const content = this.props.mxEvent.getContent<IMediaEventContent>();
const contentUrl = this.getContentUrl();
const thumbnail = this.messageContent(contentUrl, this.getThumbUrl(), content);