From ffca23344ac7e329e89168e74d4ed6998a579d99 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Tue, 25 May 2021 12:41:34 +0200 Subject: [PATCH] tweak context menu order Signed-off-by: Michael Weimann --- .../views/context_menus/MessageContextMenu.js | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index c3f634231b..ffb974f7f6 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -392,7 +392,7 @@ export default class MessageContextMenu extends React.Component { if (forwardButton || quoteButton || collapseReplyThread) { optionLists.push(( - + {quoteButton} {forwardButton} {collapseReplyThread} @@ -402,7 +402,7 @@ export default class MessageContextMenu extends React.Component { if (resendReactionsButton) { optionLists.push(( - + {resendReactionsButton} )); @@ -410,25 +410,16 @@ export default class MessageContextMenu extends React.Component { if (externalURLButton || permalinkButton) { optionLists.push(( - + {externalURLButton} {permalinkButton} )); } - if (pinButton || unhidePreviewButton) { - optionLists.push(( - - {pinButton} - {unhidePreviewButton} - - )); - } - if (reportEventButton) { optionLists.push(( - + {reportEventButton} )); @@ -436,15 +427,24 @@ export default class MessageContextMenu extends React.Component { if (viewSourceButton) { optionLists.push(( - + {viewSourceButton} )); } + if (pinButton || unhidePreviewButton) { + optionLists.push(( + + {pinButton} + {unhidePreviewButton} + + )); + } + if (redactButton) { optionLists.push(( - + {redactButton} ));