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