fix: ensure the contact name contains an ens name

Fixes 4271
This commit is contained in:
Richard Ramos 2021-12-09 11:59:28 -04:00
parent 60a3158cae
commit cebe20a152
1 changed files with 6 additions and 1 deletions

View File

@ -121,7 +121,12 @@ QtObject:
contact.blocked = false
self.saveContact(contact)
status_contacts.addContact(contact.id, contact.name)
var ensName = ""
if contact.name.endsWith(".eth"):
ensName = contact.name
status_contacts.addContact(contact.id, ensName)
self.events.emit(SIGNAL_CONTACT_ADDED, ContactAddedArgs(contact: contact))
proc rejectContactRequest*(self: Service, publicKey: string) =