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)
|
||||
|
||||
proc saveContact*(id: string, ensVerified: bool, ensName: string, alias: string,
|
||||
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.
|
||||
proc addContact*(id: string, ensName: string) {.raises: [Exception].} =
|
||||
let payload = %* [{
|
||||
"id": id,
|
||||
"ensName": ensName
|
||||
|
|
Loading…
Reference in New Issue