mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-29 21:55:49 +00:00
feat(chat): a method for creating public chat is added
This commit is contained in:
parent
650b263547
commit
08a4cfa36c
@ -6,4 +6,8 @@ export response_type
|
||||
|
||||
proc getChats*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* []
|
||||
result = callPrivateRPC("chats".prefix, payload)
|
||||
result = callPrivateRPC("chats".prefix, payload)
|
||||
|
||||
proc createPublicChat*(chatId: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* [{"ID": chatId}]
|
||||
result = callPrivateRPC("createPublicChat".prefix, payload)
|
Loading…
x
Reference in New Issue
Block a user