From 08a4cfa36c177470788f64916c65211c3eff1146 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Wed, 1 Dec 2021 17:45:37 +0100 Subject: [PATCH] feat(chat): a method for creating public chat is added --- status/statusgo_backend_new/chat.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/status/statusgo_backend_new/chat.nim b/status/statusgo_backend_new/chat.nim index 8a68892..fabca41 100644 --- a/status/statusgo_backend_new/chat.nim +++ b/status/statusgo_backend_new/chat.nim @@ -6,4 +6,8 @@ export response_type proc getChats*(): RpcResponse[JsonNode] {.raises: [Exception].} = let payload = %* [] - result = callPrivateRPC("chats".prefix, payload) \ No newline at end of file + result = callPrivateRPC("chats".prefix, payload) + +proc createPublicChat*(chatId: string): RpcResponse[JsonNode] {.raises: [Exception].} = + let payload = %* [{"ID": chatId}] + result = callPrivateRPC("createPublicChat".prefix, payload) \ No newline at end of file