feat(rn) add mute everyone / (else) capabilities

This commit is contained in:
tmoldovan8x8
2020-11-10 16:49:38 +02:00
committed by GitHub
parent 721848da3f
commit 71fb5aef6c
13 changed files with 274 additions and 147 deletions

View File

@@ -0,0 +1,20 @@
// @flow
import { translate } from '../../../base/i18n';
import { isLocalParticipantModerator } from '../../../base/participants';
import { connect } from '../../../base/redux';
import AbstractMuteEveryoneElseButton from '../AbstractMuteEveryoneElseButton';
/**
* Maps part of the Redux state to the props of this component.
*
* @param {Object} state - The Redux state.
* @returns {Props}
*/
function _mapStateToProps(state) {
return {
visible: isLocalParticipantModerator(state)
};
}
export default translate(connect(_mapStateToProps)(AbstractMuteEveryoneElseButton));