From add8163f314d7984c3a49bd60e06f75e4c8c49c8 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Thu, 3 Feb 2022 10:58:33 +0100 Subject: [PATCH] fix(@wallet): send tx with ens fixes #4629 --- ui/imports/shared/controls/AddressInput.qml | 5 ++--- ui/imports/shared/controls/ContactsListAndSearch.qml | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ui/imports/shared/controls/AddressInput.qml b/ui/imports/shared/controls/AddressInput.qml index 1f0244eb5c..d619987b6e 100644 --- a/ui/imports/shared/controls/AddressInput.qml +++ b/ui/imports/shared/controls/AddressInput.qml @@ -55,9 +55,8 @@ Item { contactsStore: root.contactsStore - onUserClicked: function (pubKey, isContact) { - console.warning("This is not refactored yet. We need to figure out where to get the address from") - //chatKey.text = address + onUserClicked: function (isContact, pubKey, ensName, address) { + chatKey.text = address } searchResultsWidth: parentWidth chatKey.customHeight: 56 diff --git a/ui/imports/shared/controls/ContactsListAndSearch.qml b/ui/imports/shared/controls/ContactsListAndSearch.qml index d51beffb85..2e99c2c369 100644 --- a/ui/imports/shared/controls/ContactsListAndSearch.qml +++ b/ui/imports/shared/controls/ContactsListAndSearch.qml @@ -33,7 +33,7 @@ Item { property bool showCheckbox: false property bool showContactList: true property bool showSearch: true - signal userClicked(string pubKey, bool isAddedContact, string name) + signal userClicked(string pubKey, bool isAddedContact, string name, string address) property var pubKeys: ([]) property bool hideCommunityMembers: false property bool addContactEnabled: true @@ -198,7 +198,7 @@ Item { } root.pubKeys = pubKeysCopy - userClicked(contact.pubKey, contact.isContact, contact.name) + userClicked(contact.pubKey, contact.isContact, contact.name, contact.address) } expanded: !searchResults.loading && pubKey === "" && !searchResults.showProfileNotFoundMessage } @@ -216,7 +216,7 @@ Item { if (!validate()) { return } - userClicked(pubKey, isAddedContact, username) + userClicked(pubKey, isAddedContact, username, searchResults.address) } onAddToContactsButtonClicked: { root.contactsStore.addContact(pubKey)