feat(e2ee): shows E2EESection only when user is moderator

This commit is contained in:
titus.moldovan 2021-06-04 10:23:17 +03:00 committed by tmoldovan8x8
parent 093d8f830a
commit cb2891ead3
1 changed files with 3 additions and 1 deletions

View File

@ -125,6 +125,8 @@ function mapStateToProps(state) {
} = state['features/base/conference']; } = state['features/base/conference'];
const { roomPasswordNumberOfDigits } = state['features/base/config']; const { roomPasswordNumberOfDigits } = state['features/base/config'];
const showE2ee = Boolean(e2eeSupported) && isLocalParticipantModerator(state);
return { return {
_canEditPassword: isLocalParticipantModerator(state), _canEditPassword: isLocalParticipantModerator(state),
_conference: conference, _conference: conference,
@ -132,7 +134,7 @@ function mapStateToProps(state) {
_locked: locked, _locked: locked,
_password: password, _password: password,
_passwordNumberOfDigits: roomPasswordNumberOfDigits, _passwordNumberOfDigits: roomPasswordNumberOfDigits,
_showE2ee: Boolean(e2eeSupported) _showE2ee: showE2ee
}; };
} }