diff --git a/src/components/views/messages/EditHistoryMessage.js b/src/components/views/messages/EditHistoryMessage.js index 70f3d207e0..92b8cb3e39 100644 --- a/src/components/views/messages/EditHistoryMessage.js +++ b/src/components/views/messages/EditHistoryMessage.js @@ -102,9 +102,9 @@ export default class EditHistoryMessage extends React.PureComponent { const AccessibleButton = sdk.getComponent('elements.AccessibleButton'); // hide the button when already redacted let redactButton; - if (!this.props.mxEvent.isRedacted() && !this.props.isBaseEvent) { + if (!this.props.mxEvent.isRedacted() && !this.props.isBaseEvent && this.state.canRedact) { redactButton = ( - + {_t("Remove")} );