feat(security/native): options available only if participant is moderator

This commit is contained in:
Calin-Teodor 2022-08-29 14:40:35 +03:00 committed by Calinteodor
parent a7c1aa4900
commit 126dba8070
1 changed files with 3 additions and 3 deletions

View File

@ -300,7 +300,7 @@ class SecurityDialog extends PureComponent<Props, State> {
<View
style = { styles.passwordContainer } >
<Text style = { styles.passwordContainerText }>
{ t('security.about') }
{ t(_isModerator ? 'security.about' : 'security.aboutReadOnly') }
</Text>
<View
style = {
@ -310,7 +310,7 @@ class SecurityDialog extends PureComponent<Props, State> {
<View>
{ this._setRoomPasswordMessage() }
</View>
{ setPasswordControls }
{ _isModerator && setPasswordControls }
</View>
</View>
);
@ -367,7 +367,7 @@ class SecurityDialog extends PureComponent<Props, State> {
{ t('info.password') }
</Text>
<Text style = { styles.savedPassword }>
{ passwordInputValue }
{ _password }
</Text>
</View>
);