refactor(contact): remove saveContact and rename to addContact (#118)

This commit is contained in:
Jonathan Rainville 2021-12-01 13:04:53 -05:00 committed by GitHub
parent 158e83e78a
commit 6d0e5ccf62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -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