Merge pull request #4560 from matrix-org/t3chguy/redact_file

Close ImageView when redacting
This commit is contained in:
Michael Telatynski 2020-05-11 10:10:25 +01:00 committed by GitHub
commit 0da8ef6a1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,6 +73,7 @@ export default class ImageView extends React.Component {
Modal.createTrackedDialog('Confirm Redact Dialog', 'Image View', ConfirmRedactDialog, {
onFinished: (proceed) => {
if (!proceed) return;
this.props.onFinished();
MatrixClientPeg.get().redactEvent(
this.props.mxEvent.getRoomId(), this.props.mxEvent.getId(),
).catch(function(e) {