move mxEvent.status check to js-sdk

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-05-16 14:14:06 +01:00
parent db78534b45
commit 58ada2c27d

View File

@ -129,7 +129,7 @@ module.exports = React.createClass({
const cli = MatrixClientPeg.get();
const room = cli.getRoom(this.props.mxEvent.getRoomId());
if (!eventStatus && room.currentState.maySendRedactionForEvent(this.props.mxEvent, cli.credentials.userId)) {
if (room.currentState.maySendRedactionForEvent(this.props.mxEvent, cli.credentials.userId)) {
redactButton = (
<div className="mx_MessageContextMenu_field" onClick={this.onRedactClick}>
Redact