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 contactsStore: root.contactsStore
onUserClicked: function (pubKey, isContact) { onUserClicked: function (isContact, pubKey, ensName, address) {
console.warning("This is not refactored yet. We need to figure out where to get the address from") chatKey.text = address
//chatKey.text = address
} }
searchResultsWidth: parentWidth searchResultsWidth: parentWidth
chatKey.customHeight: 56 chatKey.customHeight: 56

View File

@ -33,7 +33,7 @@ Item {
property bool showCheckbox: false property bool showCheckbox: false
property bool showContactList: true property bool showContactList: true
property bool showSearch: 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 var pubKeys: ([])
property bool hideCommunityMembers: false property bool hideCommunityMembers: false
property bool addContactEnabled: true property bool addContactEnabled: true
@ -198,7 +198,7 @@ Item {
} }
root.pubKeys = pubKeysCopy 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 expanded: !searchResults.loading && pubKey === "" && !searchResults.showProfileNotFoundMessage
} }
@ -216,7 +216,7 @@ Item {
if (!validate()) { if (!validate()) {
return return
} }
userClicked(pubKey, isAddedContact, username) userClicked(pubKey, isAddedContact, username, searchResults.address)
} }
onAddToContactsButtonClicked: { onAddToContactsButtonClicked: {
root.contactsStore.addContact(pubKey) root.contactsStore.addContact(pubKey)