Skip to content

Commit 58ada2c

Browse files
committed
move mxEvent.status check to js-sdk
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent db78534 commit 58ada2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/components/views/context_menus/MessageContextMenu.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ module.exports = React.createClass({
129129
const cli = MatrixClientPeg.get();
130130
const room = cli.getRoom(this.props.mxEvent.getRoomId());
131131

132-
if (!eventStatus && room.currentState.maySendRedactionForEvent(this.props.mxEvent, cli.credentials.userId)) {
132+
if (room.currentState.maySendRedactionForEvent(this.props.mxEvent, cli.credentials.userId)) {
133133
redactButton = (
134134
<div className="mx_MessageContextMenu_field" onClick={this.onRedactClick}>
135135
Redact

0 commit comments

Comments
 (0)