You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
show the various resend options as different menu items
This commit is contained in:
@@ -233,6 +233,8 @@ module.exports = React.createClass({
|
|||||||
const editStatus = mxEvent.replacingEvent() && mxEvent.replacingEvent().status;
|
const editStatus = mxEvent.replacingEvent() && mxEvent.replacingEvent().status;
|
||||||
const redactStatus = mxEvent.localRedactionEvent() && mxEvent.localRedactionEvent().status;
|
const redactStatus = mxEvent.localRedactionEvent() && mxEvent.localRedactionEvent().status;
|
||||||
let resendButton;
|
let resendButton;
|
||||||
|
let resendEditButton;
|
||||||
|
let resendRedactionButton;
|
||||||
let redactButton;
|
let redactButton;
|
||||||
let cancelButton;
|
let cancelButton;
|
||||||
let forwardButton;
|
let forwardButton;
|
||||||
@@ -255,7 +257,7 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (editStatus === EventStatus.NOT_SENT) {
|
if (editStatus === EventStatus.NOT_SENT) {
|
||||||
resendButton = (
|
resendEditButton = (
|
||||||
<div className="mx_MessageContextMenu_field" onClick={this.onResendEditClick}>
|
<div className="mx_MessageContextMenu_field" onClick={this.onResendEditClick}>
|
||||||
{ _t('Resend edit') }
|
{ _t('Resend edit') }
|
||||||
</div>
|
</div>
|
||||||
@@ -263,7 +265,7 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (redactStatus === EventStatus.NOT_SENT) {
|
if (redactStatus === EventStatus.NOT_SENT) {
|
||||||
resendButton = (
|
resendRedactionButton = (
|
||||||
<div className="mx_MessageContextMenu_field" onClick={this.onResendRedactionClick}>
|
<div className="mx_MessageContextMenu_field" onClick={this.onResendRedactionClick}>
|
||||||
{ _t('Resend removal') }
|
{ _t('Resend removal') }
|
||||||
</div>
|
</div>
|
||||||
@@ -380,6 +382,9 @@ module.exports = React.createClass({
|
|||||||
return (
|
return (
|
||||||
<div className="mx_MessageContextMenu">
|
<div className="mx_MessageContextMenu">
|
||||||
{ resendButton }
|
{ resendButton }
|
||||||
|
{ resendEditButton }
|
||||||
|
{ resendReactionsButton }
|
||||||
|
{ resendRedactionButton }
|
||||||
{ redactButton }
|
{ redactButton }
|
||||||
{ cancelButton }
|
{ cancelButton }
|
||||||
{ forwardButton }
|
{ forwardButton }
|
||||||
|
|||||||
Reference in New Issue
Block a user