fix(@wallet): send tx with ens

fixes #4629
This commit is contained in:
Anthony Laibe 2022-02-03 10:58:33 +01:00 committed by Anthony Laibe
parent ba0e0b84c0
commit add8163f31
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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)