fix(ProfilePopup): title of My Profile popup is incorrect

Fixes #6397

just display "My Profile" and no subtitle in this case
This commit is contained in:
Lukáš Tinkl 2022-07-11 11:36:18 +02:00 committed by Lukáš Tinkl
parent 23cec98ab7
commit 585a628b67
1 changed files with 3 additions and 2 deletions

View File

@ -141,9 +141,10 @@ StatusModal {
if(showVerifyIdentitySection || showVerificationPendingSection){
return qsTr("Verify %1's Identity").arg(userIsEnsVerified ? userName : userDisplayName)
}
return qsTr("%1's Profile").arg(userIsEnsVerified ? userName : userDisplayName)
return popup.isCurrentUser ? qsTr("My Profile") :
qsTr("%1's Profile").arg(userIsEnsVerified ? userName : userDisplayName)
}
header.subTitle: userIsEnsVerified ? userName : Utils.getElidedCompressedPk(userPublicKey)
header.subTitle: popup.isCurrentUser ? "" : userIsEnsVerified ? userName : Utils.getElidedCompressedPk(userPublicKey)
header.subTitleElide: Text.ElideMiddle
padding: 8