feat(toolbox) added android screen share flag

Fixes issue #9435
This commit is contained in:
Calinteodor
2021-08-17 13:42:29 +03:00
committed by GitHub
parent c23375793e
commit 307699a34c
2 changed files with 14 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
// @flow
import {
ANDROID_SCREENSHARING_ENABLED,
getFeatureFlag
} from '../../../base/flags';
import { translate } from '../../../base/i18n';
import { IconShareDesktop } from '../../../base/icons';
import { connect } from '../../../base/redux';
@@ -82,8 +86,11 @@ class ScreenSharingAndroidButton extends AbstractButton<Props, *> {
* }}
*/
function _mapStateToProps(state): Object {
const enabled = getFeatureFlag(state, ANDROID_SCREENSHARING_ENABLED, true);
return {
_screensharing: isLocalVideoTrackDesktop(state)
_screensharing: isLocalVideoTrackDesktop(state),
visible: enabled
};
}