mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-14 00:27:40 +00:00
get contract list for only added contacts
This commit is contained in:
parent
71cbffea28
commit
73ef443da5
@ -26,7 +26,7 @@ proc blockContact*(self: ContactModel, id: string): string =
|
||||
status_contacts.blockContact(contact)
|
||||
|
||||
proc getContacts*(self: ContactModel): seq[Profile] =
|
||||
result = map(status_contacts.getContacts().getElems(), proc(x: JsonNode): Profile = x.toProfileModel())
|
||||
result = map(status_contacts.getContacts().getElems(), proc(x: JsonNode): Profile = x.toProfileModel()).filterIt(it.systemTags.contains(":contact/added"))
|
||||
self.events.emit("contactUpdate", ContactUpdateArgs(contacts: result))
|
||||
|
||||
proc addContact*(self: ContactModel, id: string): string =
|
||||
|
Loading…
x
Reference in New Issue
Block a user