You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
@@ -113,13 +113,14 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
||||
return;
|
||||
}
|
||||
|
||||
const content = this.props.mxEvent.getContent() as IMediaEventContent;
|
||||
const content = this.props.mxEvent.getContent<IMediaEventContent>();
|
||||
const httpUrl = this.getContentUrl();
|
||||
const params: ComponentProps<typeof ImageView> = {
|
||||
src: httpUrl,
|
||||
name: content.body?.length > 0 ? content.body : _t('Attachment'),
|
||||
mxEvent: this.props.mxEvent,
|
||||
permalinkCreator: this.props.permalinkCreator,
|
||||
onFinished: () => {},
|
||||
};
|
||||
|
||||
if (content.info) {
|
||||
|
||||
Reference in New Issue
Block a user