From 2e9c5047bb22cca839b77df36b36833cc901f260 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Tue, 14 Sep 2021 09:52:08 -0500 Subject: [PATCH] fix: in profile popup display Username instead of ENS Username if ENS is not verified Closes #3496. --- ui/app/AppLayouts/Chat/components/ProfilePopup.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml index fe61086206..74d812f9eb 100644 --- a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml @@ -25,7 +25,7 @@ StatusModal { property var alias: "" readonly property int innerMargin: 20 - + property bool isEnsVerified: false property bool noFooter: false property bool isBlocked: false @@ -90,7 +90,7 @@ StatusModal { } StatusDescriptionListItem { - title: qsTr("ENS username") + title: ((isCurrentUser && profileModel.ens.preferredUsername) || isEnsVerified) ? qsTr("ENS username") : qsTr("Username") subTitle: isCurrentUser ? profileModel.ens.preferredUsername || userName : userName tooltip.text: qsTr("Copy to clipboard") icon.name: "copy"