From b07a0acad4585f2345b81baa5acdb8af2bc3b06f Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Wed, 26 Jan 2022 11:36:37 +0100 Subject: [PATCH] fix(@desktop/chat): [base_bc] Start new chat modal has text overlapped, also it is not possible to start new chat at all Fixes #4530 --- ui/imports/shared/controls/ContactsListAndSearch.qml | 5 +++-- ui/imports/shared/stores/RootStore.qml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/imports/shared/controls/ContactsListAndSearch.qml b/ui/imports/shared/controls/ContactsListAndSearch.qml index 4b7b00e88b..d75c98c09f 100644 --- a/ui/imports/shared/controls/ContactsListAndSearch.qml +++ b/ui/imports/shared/controls/ContactsListAndSearch.qml @@ -111,7 +111,7 @@ Item { //% "Can't chat with yourself" root.validationError = qsTrId("can-t-chat-with-yourself"); } else { - searchResults.username = chatsModel.ensView.formatENSUsername(chatKey.text) + searchResults.username = Utils.addStatusEns(chatKey.text.trim()) let userAlias = globalUtils.generateAlias(resolvedPubKey) userAlias = userAlias.length > 20 ? userAlias.substring(0, 19) + "..." : userAlias searchResults.userAlias = userAlias + " • " + Utils.compactAddress(resolvedPubKey, 4) @@ -225,7 +225,8 @@ Item { NoFriendsRectangle { id: noContactsRect visible: showContactList - anchors.top: chatKey.top + anchors.top: chatKey.bottom + anchors.topMargin: Style.current.xlPadding * 3 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } diff --git a/ui/imports/shared/stores/RootStore.qml b/ui/imports/shared/stores/RootStore.qml index e5e409c6fd..05f6171465 100644 --- a/ui/imports/shared/stores/RootStore.qml +++ b/ui/imports/shared/stores/RootStore.qml @@ -6,10 +6,11 @@ QtObject { id: root // property var utilsModelInst: !!utilsModel ? utilsModel : null // property var chatsModelInst: !!chatsModel ?chatsModel : null -// property var userProfileInst: !!userProfile ? userProfile : null // property var walletModelInst: !!walletModel ? walletModel : null // property var keycardModelInst: !!keycardModel ? keycardModel : null // property var profileModelInst: !!profileModel ? profileModel : null + + property var userProfileInst: !!userProfile ? userProfile : null property var walletSectionInst: !!walletSection ? walletSection : null property var appSettings: !!localAppSettings ? localAppSettings : null property var accountSensitiveSettings: !!localAccountSensitiveSettings ? localAccountSensitiveSettings : null