Don't warn about the effects of redacting state events when redacting non-state-events (#11071)
This commit is contained in:
parent
788c1c8f13
commit
3f52de2f5b
4 changed files with 14 additions and 6 deletions
|
@ -15,6 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import React from "react";
|
||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||
|
||||
import { _t } from "../../../languageHandler";
|
||||
import ConfirmRedactDialog from "./ConfirmRedactDialog";
|
||||
|
@ -23,6 +24,7 @@ import BaseDialog from "./BaseDialog";
|
|||
import Spinner from "../elements/Spinner";
|
||||
|
||||
interface IProps {
|
||||
event: MatrixEvent;
|
||||
redact: () => Promise<void>;
|
||||
onFinished: (success?: boolean) => void;
|
||||
}
|
||||
|
@ -91,7 +93,7 @@ export default class ConfirmAndWaitRedactDialog extends React.PureComponent<IPro
|
|||
);
|
||||
}
|
||||
} else {
|
||||
return <ConfirmRedactDialog onFinished={this.onParentFinished} />;
|
||||
return <ConfirmRedactDialog event={this.props.event} onFinished={this.onParentFinished} />;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue