Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7fb9a00

Browse files
committed
reorder message context menu items
Signed-off-by: Michael Weimann <[email protected]>
1 parent cdc283c commit 7fb9a00

File tree

2 files changed

+16
-53
lines changed

2 files changed

+16
-53
lines changed

src/components/views/context_menus/MessageContextMenu.js

Lines changed: 15 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -389,61 +389,24 @@ export default class MessageContextMenu extends React.Component {
389389
);
390390
}
391391

392-
if (forwardButton || quoteButton || collapseReplyThread) {
393-
optionLists.push((
394-
<IconizedContextMenuOptionList key={'group1'}>
395-
{quoteButton}
396-
{forwardButton}
397-
{collapseReplyThread}
398-
</IconizedContextMenuOptionList>
399-
));
400-
}
401-
402-
if (resendReactionsButton) {
403-
optionLists.push((
404-
<IconizedContextMenuOptionList key={'group2'}>
405-
{resendReactionsButton}
406-
</IconizedContextMenuOptionList>
407-
));
408-
}
409-
410-
if (externalURLButton || permalinkButton) {
411-
optionLists.push((
412-
<IconizedContextMenuOptionList key={'group3'}>
413-
{externalURLButton}
414-
{permalinkButton}
415-
</IconizedContextMenuOptionList>
416-
));
417-
}
418-
419-
if (reportEventButton) {
420-
optionLists.push((
421-
<IconizedContextMenuOptionList key={'group4'}>
422-
{reportEventButton}
423-
</IconizedContextMenuOptionList>
424-
));
425-
}
426-
427-
if (viewSourceButton) {
428-
optionLists.push((
429-
<IconizedContextMenuOptionList key={'group5'}>
430-
{viewSourceButton}
431-
</IconizedContextMenuOptionList>
432-
));
433-
}
434-
435-
if (pinButton || unhidePreviewButton) {
436-
optionLists.push((
437-
<IconizedContextMenuOptionList key={'group6'}>
438-
{pinButton}
439-
{unhidePreviewButton}
440-
</IconizedContextMenuOptionList>
441-
));
442-
}
392+
optionLists.push((
393+
<IconizedContextMenuOptionList key={'group1'}>
394+
{quoteButton}
395+
{forwardButton}
396+
{pinButton}
397+
{permalinkButton}
398+
{reportEventButton}
399+
{externalURLButton}
400+
{viewSourceButton}
401+
{unhidePreviewButton}
402+
{resendReactionsButton}
403+
{collapseReplyThread}
404+
</IconizedContextMenuOptionList>
405+
));
443406

444407
if (redactButton) {
445408
optionLists.push((
446-
<IconizedContextMenuOptionList key={'group7'} red>
409+
<IconizedContextMenuOptionList key={'group2'} red>
447410
{redactButton}
448411
</IconizedContextMenuOptionList>
449412
));

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,7 @@
22192219
"Sending": "Sending",
22202220
"Sent": "Sent",
22212221
"Open link": "Open link",
2222-
"Forward message": "Forward message",
2222+
"Forward": "Forward",
22232223
"Message preview": "Message preview",
22242224
"Search for rooms or people": "Search for rooms or people",
22252225
"Confirm abort of host creation": "Confirm abort of host creation",

0 commit comments

Comments
 (0)