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
This commit is contained in:
Sale Djenic 2022-01-26 11:36:37 +01:00
parent 7421967d96
commit b07a0acad4
2 changed files with 5 additions and 3 deletions

View File

@ -111,7 +111,7 @@ Item {
//% "Can't chat with yourself" //% "Can't chat with yourself"
root.validationError = qsTrId("can-t-chat-with-yourself"); root.validationError = qsTrId("can-t-chat-with-yourself");
} else { } else {
searchResults.username = chatsModel.ensView.formatENSUsername(chatKey.text) searchResults.username = Utils.addStatusEns(chatKey.text.trim())
let userAlias = globalUtils.generateAlias(resolvedPubKey) let userAlias = globalUtils.generateAlias(resolvedPubKey)
userAlias = userAlias.length > 20 ? userAlias.substring(0, 19) + "..." : userAlias userAlias = userAlias.length > 20 ? userAlias.substring(0, 19) + "..." : userAlias
searchResults.userAlias = userAlias + " • " + Utils.compactAddress(resolvedPubKey, 4) searchResults.userAlias = userAlias + " • " + Utils.compactAddress(resolvedPubKey, 4)
@ -225,7 +225,8 @@ Item {
NoFriendsRectangle { NoFriendsRectangle {
id: noContactsRect id: noContactsRect
visible: showContactList visible: showContactList
anchors.top: chatKey.top anchors.top: chatKey.bottom
anchors.topMargin: Style.current.xlPadding * 3
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }

View File

@ -6,10 +6,11 @@ QtObject {
id: root id: root
// property var utilsModelInst: !!utilsModel ? utilsModel : null // property var utilsModelInst: !!utilsModel ? utilsModel : null
// property var chatsModelInst: !!chatsModel ?chatsModel : null // property var chatsModelInst: !!chatsModel ?chatsModel : null
// property var userProfileInst: !!userProfile ? userProfile : null
// property var walletModelInst: !!walletModel ? walletModel : null // property var walletModelInst: !!walletModel ? walletModel : null
// property var keycardModelInst: !!keycardModel ? keycardModel : null // property var keycardModelInst: !!keycardModel ? keycardModel : null
// property var profileModelInst: !!profileModel ? profileModel : null // property var profileModelInst: !!profileModel ? profileModel : null
property var userProfileInst: !!userProfile ? userProfile : null
property var walletSectionInst: !!walletSection ? walletSection : null property var walletSectionInst: !!walletSection ? walletSection : null
property var appSettings: !!localAppSettings ? localAppSettings : null property var appSettings: !!localAppSettings ? localAppSettings : null
property var accountSensitiveSettings: !!localAccountSensitiveSettings ? localAccountSensitiveSettings : null property var accountSensitiveSettings: !!localAccountSensitiveSettings ? localAccountSensitiveSettings : null