Skip to content
Snippets Groups Projects
Commit 1daeb263 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

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
parent a2a6e761
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment