Don't warn about the effects of redacting state events when redacting non-state-events (#11071)

This commit is contained in:
Michael Telatynski 2023-06-14 09:49:17 +01:00 committed by GitHub
parent 788c1c8f13
commit 3f52de2f5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

View file

@ -79,6 +79,7 @@ export default class EditHistoryMessage extends React.PureComponent<IProps, ISta
Modal.createDialog(
ConfirmAndWaitRedactDialog,
{
event,
redact: async () => {
await cli.redactEvent(event.getRoomId()!, event.getId()!);
},