Omit onFinished
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
7b35d2c270
commit
bde26a809a
|
@ -115,12 +115,11 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
const content = this.props.mxEvent.getContent<IMediaEventContent>();
|
const content = this.props.mxEvent.getContent<IMediaEventContent>();
|
||||||
const httpUrl = this.getContentUrl();
|
const httpUrl = this.getContentUrl();
|
||||||
const params: ComponentProps<typeof ImageView> = {
|
const params: Omit<ComponentProps<typeof ImageView>, "onFinished"> = {
|
||||||
src: httpUrl,
|
src: httpUrl,
|
||||||
name: content.body?.length > 0 ? content.body : _t('Attachment'),
|
name: content.body?.length > 0 ? content.body : _t('Attachment'),
|
||||||
mxEvent: this.props.mxEvent,
|
mxEvent: this.props.mxEvent,
|
||||||
permalinkCreator: this.props.permalinkCreator,
|
permalinkCreator: this.props.permalinkCreator,
|
||||||
onFinished: () => {},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (content.info) {
|
if (content.info) {
|
||||||
|
|
Loading…
Reference in New Issue