mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-21 20:09:37 +00:00
fix(ProfilePopup): Bind to displayName if current user
This commit is contained in:
parent
66b79fbda8
commit
980135fedf
@ -77,8 +77,10 @@ StatusDialog {
|
||||
// All this should be improved more, but for now we leave it like this.
|
||||
const contactDetails = Utils.getContactDetailsAsJson(publicKey);
|
||||
|
||||
isCurrentUser = popup.profileStore.pubkey === publicKey;
|
||||
|
||||
userPublicKey = publicKey;
|
||||
userDisplayName = contactDetails.displayName;
|
||||
userDisplayName = isCurrentUser ? Qt.binding(() => { return popup.profileStore.displayName }) : contactDetails.displayName;
|
||||
userName = contactDetails.alias;
|
||||
userNickname = contactDetails.localNickname;
|
||||
userEnsName = contactDetails.name;
|
||||
@ -116,7 +118,6 @@ StatusDialog {
|
||||
isVerified = outgoingVerificationStatus === Constants.verificationStatus.verified
|
||||
|
||||
text = ""; // this is most likely unneeded
|
||||
isCurrentUser = popup.profileStore.pubkey === publicKey;
|
||||
|
||||
popup.open();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user