Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
flag to hide settings button in overflow menu (#12515)
Alexey Matveevc32866f6a2bb
diff --git a/react/features/base/flags/constants.ts b/react/features/base/flags/constants.tsindex 20650270f8..67031df0c7 100644--- a/react/features/base/flags/constants.ts+++ b/react/features/base/flags/constants.ts@@ -209,6 +209,12 @@ export const SECURITY_OPTIONS_ENABLED = 'security-options.enabled';*/export const SERVER_URL_CHANGE_ENABLED = 'server-url-change.enabled';+/**+ * Flag indicating if settings should be enabled.+ * Default: enabled (true).+ */+export const SETTINGS_ENABLED = 'settings.enabled';+/*** Flag indicating if tile view feature should be enabled.* Default: enabled.diff --git a/react/features/base/settings/components/native/SettingsButton.tsx b/react/features/base/settings/components/native/SettingsButton.tsxindex 6baa85db66..47e2f20159 100644--- a/react/features/base/settings/components/native/SettingsButton.tsx+++ b/react/features/base/settings/components/native/SettingsButton.tsx@@ -1,14 +1,18 @@/* eslint-disable lines-around-comment */-import { translate } from '../../../../base/i18n/functions';-import { IconSettings } from '../../../../base/icons/svg';++import { IReduxState } from '../../../../app/types';// @ts-ignoreimport { AbstractButton, type AbstractButtonProps } from '../../../../base/toolbox/components';-// @ts-ignoreimport { navigate }// @ts-ignorefrom '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';// @ts-ignoreimport { screen } from '../../../../mobile/navigation/routes';+// @ts-ignore+import { SETTINGS_ENABLED, getFeatureFlag } from '../../../flags';+import { translate } from '../../../i18n/functions';+import { IconSettings } from '../../../icons/svg';+import { connect } from '../../../redux/functions';/*** Implements an {@link AbstractButton} to open the carmode.@@ -29,5 +33,20 @@ class SettingsButton extends AbstractButton<AbstractButtonProps, any, any> {}}++/**+ * Maps part of the redux state to the component's props.+ *+ * @param {IReduxState} state - The Redux state.+ * @returns {Object}+ */+function _mapStateToProps(state: IReduxState) {+ const enabled = getFeatureFlag(state, SETTINGS_ENABLED, true);++ return {+ visible: enabled+ };+}+// @ts-ignore-export default translate(SettingsButton);+export default translate(connect(_mapStateToProps)(SettingsButton));