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:
parent
6c7deb85a0
commit
683e96f276
|
@ -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)
|
||||
|
Loading…
Reference in New Issue