feat(e2ee): shows E2EESection only when user is moderator
This commit is contained in:
parent
093d8f830a
commit
cb2891ead3
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue