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:
Saúl Ibarra Corretgé
2020-04-29 10:19:17 +02:00
committed by Saúl Ibarra Corretgé
parent c41047344f
commit e5b563ba46
11 changed files with 129 additions and 67 deletions
@@ -1,5 +1,6 @@
// @flow
import { CHAT_ENABLED, getFeatureFlag } from '../../../base/flags';
import { IconChat, IconChatUnread } from '../../../base/icons';
import { setActiveModalId } from '../../../base/modal';
import { getLocalParticipant } from '../../../base/participants';
@@ -114,16 +115,18 @@ function _mapDispatchToProps(dispatch: Function) {
* Maps part of the redux state to the component's props.
*
* @param {Object} state - The Redux state.
* @returns {{
* _unreadMessageCount
* }}
* @param {Object} ownProps - The properties explicitly passed to the component instance.
* @returns {Props}
*/
function _mapStateToProps(state) {
function _mapStateToProps(state, ownProps) {
const localParticipant = getLocalParticipant(state);
const enabled = getFeatureFlag(state, CHAT_ENABLED, true);
const { visible = enabled } = ownProps;
return {
_showNamePrompt: !localParticipant.name,
_unreadMessageCount: getUnreadCount(state)
_unreadMessageCount: getUnreadCount(state),
visible
};
}