fix(desktop/contacts) Contacts list not shown

Contacts updates were somehow lost in the base_02
branch, brought back related changes
This commit is contained in:
Alexandra Betouni 2021-11-24 02:50:15 +02:00
parent 6c7deb85a0
commit 683e96f276
2 changed files with 8 additions and 9 deletions

View File

@ -23,19 +23,18 @@ proc saveContact*(id: string, ensVerified: bool, ensName: string, alias: string,
"alias": alias,
"identicon": identicon,
"images": {
"thumbnail": {"Payload": thumbnail.partition(",")[2]},
"large": {"Payload": largeImage.partition(",")[2]}
"thumbnail": thumbnail,
"large": largeImage
},
"added": added,
"blocked": blocked,
"hasAddedUs": hasAddedUs,
"localNickname": localNickname
}]
discard callPrivateRPC("saveContact".prefix, payload)
#TODO figure out why this causes the app to crash and uncomment
#discard callPrivateRPC("saveContact".prefix, payload)
proc sendContactUpdate*(publicKey, ensName, thumbnail: string)
{.raises: [Exception].} =
let payload = %* [publicKey, ensName, thumbnail]
discard callPrivateRPC("sendContactUpdate".prefix, payload)