only show resend options if event hasn't been redacted

(which can now be only local, which is why this wasn't neccesary before)
pull/21833/head
Bruno Windels 2019-07-01 17:39:30 +02:00
parent 0d79b03f53
commit 4be16a380a
1 changed files with 22 additions and 21 deletions

View File

@ -269,7 +269,7 @@ module.exports = React.createClass({
// status is SENT before remote-echo, null after
const isSent = !eventStatus || eventStatus === EventStatus.SENT;
if (!mxEvent.isRedacted()) {
if (eventStatus === EventStatus.NOT_SENT) {
resendButton = (
<div className="mx_MessageContextMenu_field" onClick={this.onResendClick}>
@ -293,6 +293,7 @@ module.exports = React.createClass({
</div>
);
}
}
if (redactStatus === EventStatus.NOT_SENT) {
resendRedactionButton = (