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
rn,flags: feature flag to show/hide 'Tile View' button
patidars8accd9e433ab
diff --git a/react/features/base/flags/constants.js b/react/features/base/flags/constants.jsindex 7621476c71..114bf57a61 100644--- a/react/features/base/flags/constants.js+++ b/react/features/base/flags/constants.js@@ -81,6 +81,12 @@ export const RAISE_HAND_ENABLED = 'raise-hand.enabled';*/export const RECORDING_ENABLED = 'recording.enabled';+/**+ * Flag indicating if tile view feature should be enabled.+ * Default: enabled.+ */+export const TILE_VIEW_ENABLED = 'tile-view.enabled';+/*** Flag indicating if the welcome page should be enabled.* Default: disabled (false).diff --git a/react/features/video-layout/components/TileViewButton.js b/react/features/video-layout/components/TileViewButton.jsindex 66827b5fd4..2246c3ce0b 100644--- a/react/features/video-layout/components/TileViewButton.js+++ b/react/features/video-layout/components/TileViewButton.js@@ -16,6 +16,7 @@ import {import { setTileView } from '../actions';import logger from '../logger';+import { TILE_VIEW_ENABLED, getFeatureFlag } from '../../base/flags';/*** The type of the React {@code Component} props of {@link TileViewButton}.@@ -83,13 +84,16 @@ class TileViewButton<P: Props> extends AbstractButton<P, *> {* {@code TileViewButton} component.** @param {Object} state - The Redux state.- * @returns {{- * _tileViewEnabled: boolean- * }}+ * @param {Object} ownProps - The properties explicitly passed to the component instance.+ * @returns {Props}*/-function _mapStateToProps(state) {+function _mapStateToProps(state, ownProps) {+ const enabled = getFeatureFlag(state, TILE_VIEW_ENABLED, true);+ const { visible = enabled } = ownProps;+return {- _tileViewEnabled: state['features/video-layout'].tileViewEnabled+ _tileViewEnabled: state['features/video-layout'].tileViewEnabled,+ visible};}