From 9a1be63baacd86aaad9f77ca0ee5bea43e7e7980 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Tue, 22 Jun 2021 19:51:11 +0200 Subject: [PATCH] reorder message context menu items Signed-off-by: Michael Weimann --- .../views/context_menus/MessageContextMenu.js | 67 +++++-------------- src/i18n/strings/en_EN.json | 2 +- 2 files changed, 16 insertions(+), 53 deletions(-) diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index e41f56ff2f..cd7dd91e4a 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -389,61 +389,24 @@ export default class MessageContextMenu extends React.Component { ); } - if (forwardButton || quoteButton || collapseReplyThread) { - optionLists.push(( - - {quoteButton} - {forwardButton} - {collapseReplyThread} - - )); - } - - if (resendReactionsButton) { - optionLists.push(( - - {resendReactionsButton} - - )); - } - - if (externalURLButton || permalinkButton) { - optionLists.push(( - - {externalURLButton} - {permalinkButton} - - )); - } - - if (reportEventButton) { - optionLists.push(( - - {reportEventButton} - - )); - } - - if (viewSourceButton) { - optionLists.push(( - - {viewSourceButton} - - )); - } - - if (pinButton || unhidePreviewButton) { - optionLists.push(( - - {pinButton} - {unhidePreviewButton} - - )); - } + optionLists.push(( + + {quoteButton} + {forwardButton} + {pinButton} + {permalinkButton} + {reportEventButton} + {externalURLButton} + {viewSourceButton} + {unhidePreviewButton} + {resendReactionsButton} + {collapseReplyThread} + + )); if (redactButton) { optionLists.push(( - + {redactButton} )); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index faff21c2dd..f95caeff71 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -2252,7 +2252,7 @@ "Sending": "Sending", "Sent": "Sent", "Open link": "Open link", - "Forward message": "Forward message", + "Forward": "Forward", "Message preview": "Message preview", "Search for rooms or people": "Search for rooms or people", "Confirm abort of host creation": "Confirm abort of host creation",