rn,flags: add more feature flags to toggle specific behavior
- Invite funcionality (altogether) - Recording - Live streaming - Meeting name - Meeting password
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
c41047344f
commit
e5b563ba46
@@ -1,12 +1,11 @@
|
||||
// @flow
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import { Platform, TouchableOpacity, View } from 'react-native';
|
||||
import { TouchableOpacity, View } from 'react-native';
|
||||
import Collapsible from 'react-native-collapsible';
|
||||
|
||||
import { ColorSchemeRegistry } from '../../../base/color-scheme';
|
||||
import { BottomSheet, hideDialog, isDialogOpen } from '../../../base/dialog';
|
||||
import { IOS_RECORDING_ENABLED, getFeatureFlag } from '../../../base/flags';
|
||||
import { IconDragHandle } from '../../../base/icons';
|
||||
import { connect } from '../../../base/redux';
|
||||
import { StyleType } from '../../../base/styles';
|
||||
@@ -134,10 +133,7 @@ class OverflowMenu extends PureComponent<Props, State> {
|
||||
<Collapsible collapsed = { !showMore }>
|
||||
<ToggleCameraButton { ...buttonProps } />
|
||||
<TileViewButton { ...buttonProps } />
|
||||
{
|
||||
this.props._recordingEnabled
|
||||
&& <RecordButton { ...buttonProps } />
|
||||
}
|
||||
<RecordButton { ...buttonProps } />
|
||||
<LiveStreamButton { ...buttonProps } />
|
||||
<RoomLockButton { ...buttonProps } />
|
||||
<ClosedCaptionButton { ...buttonProps } />
|
||||
@@ -240,8 +236,7 @@ class OverflowMenu extends PureComponent<Props, State> {
|
||||
function _mapStateToProps(state) {
|
||||
return {
|
||||
_bottomSheetStyles: ColorSchemeRegistry.get(state, 'BottomSheet'),
|
||||
_isOpen: isDialogOpen(state, OverflowMenu_),
|
||||
_recordingEnabled: Platform.OS !== 'ios' || getFeatureFlag(state, IOS_RECORDING_ENABLED)
|
||||
_isOpen: isDialogOpen(state, OverflowMenu_)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user