Skip to content

Commit 1a23b72

Browse files
fix: missing featured RoomToolBoxAction order (#36591)
1 parent e4a3b7c commit 1a23b72

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.changeset/seven-gorillas-sell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rocket.chat/meteor": patch
3+
---
4+
5+
Fixes order on featured room header actions

apps/meteor/client/hooks/roomActions/useAppsRoomStarActions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const useAppsRoomStarActions = () => {
2424
if (!result.data) {
2525
return undefined;
2626
}
27-
2827
const filteredActions = result.data.filter(applyButtonFilters);
2928

3029
if (filteredActions.length === 0) {
@@ -37,6 +36,7 @@ export const useAppsRoomStarActions = () => {
3736
icon: 'stars',
3837
groups: ['group', 'channel', 'live', 'team', 'direct', 'direct_multiple'],
3938
featured: true,
39+
order: 3,
4040
renderToolboxItem: ({ id, icon, title, disabled, className }) => (
4141
<GenericMenu
4242
button={<HeaderToolbarAction />}

apps/meteor/client/hooks/roomActions/useVideoCallRoomAction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const useVideoCallRoomAction = () => {
7777
icon: 'video',
7878
featured: true,
7979
action: handleOpenVideoConf,
80-
order: -1,
80+
order: 1,
8181
groups,
8282
disabled,
8383
tooltip,

apps/meteor/client/hooks/roomActions/useVoiceCallRoomAction.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const useVoiceCallRoomAction = () => {
6565
featured: true,
6666
action: handleOnClick,
6767
groups: ['direct'] as const,
68+
order: 2,
6869
disabled,
6970
tooltip,
7071
};

0 commit comments

Comments
 (0)