status-desktop/src/backend/visual_identity.nim

16 lines
469 B
Nim
Raw Normal View History

import json, chronicles, core
import response_type
export response_type
logScope:
topics = "rpc-visual-identity"
proc emojiHashOf*(key: string): RpcResponse[JsonNode] {.raises: [Exception].} =
let payload = %* [key]
result = core.callPrivateRPC("visualIdentity_emojiHashOf", payload)
proc colorHashOf*(key: string): RpcResponse[JsonNode] {.raises: [Exception].} =
let payload = %* [key]
result = core.callPrivateRPC("visualIdentity_colorHashOf", payload)