Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(toolbox): use the same name for screen share

Calin-Teodore75bacae4a17
diff --git a/react/features/toolbox/constants.ts b/react/features/toolbox/constants.ts
index 9e664d04a3..20ffa50bfa 100644
--- a/react/features/toolbox/constants.ts
+++ b/react/features/toolbox/constants.ts
@@ -64,7 +64,7 @@ export const THRESHOLDS = [
export const NATIVE_THRESHOLDS = [
{
width: 560,
- order: [ 'microphone', 'camera', 'chat', 'screensharing', 'raisehand', 'tileview', 'overflowmenu', 'hangup' ]
+ order: [ 'microphone', 'camera', 'chat', 'desktop', 'raisehand', 'tileview', 'overflowmenu', 'hangup' ]
},
{
width: 500,
@@ -193,7 +193,7 @@ export const NATIVE_TOOLBAR_BUTTONS: NativeToolbarButton[] = [
'microphone',
'overflowmenu',
'raisehand',
- 'screensharing',
+ 'desktop',
'tileview'
];
diff --git a/react/features/toolbox/hooks.native.ts b/react/features/toolbox/hooks.native.ts
index 466d58c343..99adb12d85 100644
--- a/react/features/toolbox/hooks.native.ts
+++ b/react/features/toolbox/hooks.native.ts
@@ -34,7 +34,7 @@ const chat = {
};
const screensharing = {
- key: 'screensharing',
+ key: 'desktop',
Content: ScreenSharingButton,
group: 1
};
@@ -149,7 +149,7 @@ export function useNativeToolboxButtons(
microphone: audioMuteButton,
camera: videoMuteButton,
chat: chatButton,
- screensharing: screenSharingButton,
+ desktop: screenSharingButton,
raisehand,
tileview: tileViewButton,
overflowmenu: overflowMenuButton,
diff --git a/react/features/toolbox/types.ts b/react/features/toolbox/types.ts
index f3700879c5..265a1d18de 100644
--- a/react/features/toolbox/types.ts
+++ b/react/features/toolbox/types.ts
@@ -84,7 +84,7 @@ export type NativeToolbarButton = 'camera' |
'chat' |
'microphone' |
'raisehand' |
- 'screensharing' |
+ 'desktop' |
'tileview' |
'overflowmenu' |
'hangup';