fix: ensure the contact name contains an ens name
Fixes 4271
This commit is contained in:
parent
60a3158cae
commit
cebe20a152
|
@ -121,7 +121,12 @@ QtObject:
|
||||||
contact.blocked = false
|
contact.blocked = false
|
||||||
|
|
||||||
self.saveContact(contact)
|
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))
|
self.events.emit(SIGNAL_CONTACT_ADDED, ContactAddedArgs(contact: contact))
|
||||||
|
|
||||||
proc rejectContactRequest*(self: Service, publicKey: string) =
|
proc rejectContactRequest*(self: Service, publicKey: string) =
|
||||||
|
|
Loading…
Reference in New Issue