1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-29 19:23:40 +02: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:
Sébastien Blin 2022-01-07 14:48:32 -05:00
parent a2a6e761a6
commit 1daeb26300

View file

@ -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