1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Omit onFinished

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-07-14 09:54:33 +02:00
parent 7b35d2c270
commit bde26a809a

View File

@@ -115,12 +115,11 @@ export default class MImageBody extends React.Component<IProps, IState> {
const content = this.props.mxEvent.getContent<IMediaEventContent>();
const httpUrl = this.getContentUrl();
const params: ComponentProps<typeof ImageView> = {
const params: Omit<ComponentProps<typeof ImageView>, "onFinished"> = {
src: httpUrl,
name: content.body?.length > 0 ? content.body : _t('Attachment'),
mxEvent: this.props.mxEvent,
permalinkCreator: this.props.permalinkCreator,
onFinished: () => {},
};
if (content.info) {