diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index 95bf59b470..8fc226c31a 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -90,6 +90,11 @@ module.exports = React.createClass({ this.closeMenu(); }, + onResendEditClick: function() { + Resend.resend(this.props.mxEvent.replacingEvent()); + this.closeMenu(); + }, + e2eInfoClicked: function() { this.props.e2eInfoCallback(); this.closeMenu(); @@ -220,6 +225,8 @@ module.exports = React.createClass({ render: function() { const mxEvent = this.props.mxEvent; const eventStatus = mxEvent.status; + const editEvent = mxEvent.replacingEvent(); + const editStatus = editEvent && editEvent.status; let resendButton; let redactButton; let cancelButton; @@ -242,6 +249,14 @@ module.exports = React.createClass({ ); } + if (editStatus === EventStatus.NOT_SENT) { + resendButton = ( +