diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js
index b61d8b50f0..1d871b484d 100644
--- a/src/components/views/context_menus/MessageContextMenu.js
+++ b/src/components/views/context_menus/MessageContextMenu.js
@@ -257,7 +257,7 @@ export default class MessageContextMenu extends React.Component {
let externalURLButton;
let quoteButton;
let collapseReplyThread;
- const optionLists = [];
+ let redactItemList;
// status is SENT before remote-echo, null after
const isSent = !eventStatus || eventStatus === EventStatus.SENT;
@@ -388,7 +388,7 @@ export default class MessageContextMenu extends React.Component {
);
}
- optionLists.push((
+ const commonItemsList = (
{ quoteButton }
{ forwardButton }
@@ -401,14 +401,14 @@ export default class MessageContextMenu extends React.Component {
{ resendReactionsButton }
{ collapseReplyThread }
- ));
+ );
if (redactButton) {
- optionLists.push((
+ redactItemList = (
{ redactButton }
- ));
+ );
}
return (
@@ -417,7 +417,8 @@ export default class MessageContextMenu extends React.Component {
className="mx_MessageContextMenu"
compact={true}
>
- { optionLists }
+ { commonItemsList }
+ { redactItemList }
);
}