Skip to content

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

rn,flags: add "toolbox.alwaysVisible" flag

NicolasD3043f50ce3f7
diff --git a/react/features/base/flags/constants.js b/react/features/base/flags/constants.js
index 114bf57a61..fb288a7c6a 100644
--- a/react/features/base/flags/constants.js
+++ b/react/features/base/flags/constants.js
@@ -87,6 +87,12 @@ export const RECORDING_ENABLED = 'recording.enabled';
*/
export const TILE_VIEW_ENABLED = 'tile-view.enabled';
+/**
+ * Flag indicating if the toolbox should be always be visible
+ * Default: disabled (false).
+ */
+export const TOOLBOX_ALWAYS_VISIBLE = 'toolbox.alwaysVisible';
+
/**
* Flag indicating if the welcome page should be enabled.
* Default: disabled (false).
diff --git a/react/features/toolbox/functions.native.js b/react/features/toolbox/functions.native.js
index 27a90ea7d7..0e6392a062 100644
--- a/react/features/toolbox/functions.native.js
+++ b/react/features/toolbox/functions.native.js
@@ -1,5 +1,6 @@
// @flow
+import { TOOLBOX_ALWAYS_VISIBLE, getFeatureFlag } from '../base/flags';
import { toState } from '../base/redux';
/**
@@ -13,6 +14,7 @@ export function isToolboxVisible(stateful: Object | Function) {
const state = toState(stateful);
const { alwaysVisible, enabled, visible } = state['features/toolbox'];
const { length: participantCount } = state['features/base/participants'];
+ const flag = getFeatureFlag(state, TOOLBOX_ALWAYS_VISIBLE, false);
- return enabled && (alwaysVisible || visible || participantCount === 1);
+ return enabled && (alwaysVisible || visible || participantCount === 1 || flag);
}