Types!
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
86580f3f20
commit
af7769ce93
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
|||
const thumbWidth = 800;
|
||||
const thumbHeight = 600;
|
||||
|
||||
const content = this.props.mxEvent.getContent() as IMediaEventContent;
|
||||
const content = this.props.mxEvent.getContent<IMediaEventContent>();
|
||||
const media = mediaFromContent(content);
|
||||
|
||||
if (media.isEncrypted) {
|
||||
|
|
Loading…
Reference in a new issue