mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2026-01-11 11:26:51 +08:00
UserProfile: clean code for showing username
The comment was incorrect (it check the fingerprint, not the alias) and the condition was duplicated Change-Id: I2b3a21de64797dc90abaaa452645d7b0e6183ac1
This commit is contained in:
@@ -67,7 +67,7 @@ BaseModalDialog {
|
||||
showPresenceIndicator: false
|
||||
}
|
||||
|
||||
// Visible when user alias is not empty or equals to id.
|
||||
// Visible when user alias is not empty and not equal to id.
|
||||
MaterialLineEdit {
|
||||
id: contactAlias
|
||||
|
||||
@@ -115,11 +115,11 @@ BaseModalDialog {
|
||||
Layout.alignment: Qt.AlignRight
|
||||
font.pointSize: JamiTheme.textFontSize
|
||||
text: JamiStrings.username
|
||||
visible: registeredNameText ? (registeredNameText === idText ? false : true) : false
|
||||
visible: contactDisplayName.visible
|
||||
color: JamiTheme.faddedFontColor
|
||||
}
|
||||
|
||||
// Visible when user name is not empty or equals to alias.
|
||||
// Visible when user name is not empty or equals to id.
|
||||
MaterialLineEdit {
|
||||
id: contactDisplayName
|
||||
|
||||
|
||||
Reference in New Issue
Block a user