mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-13 22:15:24 +00:00
refactor(contact): remove saveContact and rename to addContact (#118)
This commit is contained in:
parent
158e83e78a
commit
6d0e5ccf62
@ -34,12 +34,7 @@ proc setContactLocalNickname*(id: string, name: string) =
|
|||||||
}]
|
}]
|
||||||
discard callPrivateRPC("setContactLocalNickname".prefix, payload)
|
discard callPrivateRPC("setContactLocalNickname".prefix, payload)
|
||||||
|
|
||||||
proc saveContact*(id: string, ensVerified: bool, ensName: string, alias: string,
|
proc addContact*(id: string, ensName: string) {.raises: [Exception].} =
|
||||||
identicon: string, thumbnail: string, largeImage: string, added: bool,
|
|
||||||
blocked: bool, hasAddedUs: bool, localNickname: string)
|
|
||||||
{.raises: [Exception].} =
|
|
||||||
# TODO: Most of these method arguments aren't used anymore
|
|
||||||
# as status-go's RPC API became smarter. Should remove those.
|
|
||||||
let payload = %* [{
|
let payload = %* [{
|
||||||
"id": id,
|
"id": id,
|
||||||
"ensName": ensName
|
"ensName": ensName
|
||||||
|
Loading…
x
Reference in New Issue
Block a user