From 62775034ed69e4e185e30b14f7620cf6b01d7691 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 31 Jan 2022 09:31:20 -0400 Subject: [PATCH] refactor: add categoryId when creating a community channel --- status/statusgo_backend_new/communities.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/status/statusgo_backend_new/communities.nim b/status/statusgo_backend_new/communities.nim index 2d7dcbb..94fcfcc 100644 --- a/status/statusgo_backend_new/communities.nim +++ b/status/statusgo_backend_new/communities.nim @@ -83,7 +83,8 @@ proc editCommunity*( proc createCommunityChannel*( communityId: string, name: string, - description: string + description: string, + categoryId: string ): RpcResponse[JsonNode] {.raises: [Exception].} = result = callPrivateRPC("createCommunityChat".prefix, %*[ communityId, @@ -103,7 +104,8 @@ proc createCommunityChannel*( # "image_type": 1 # 1 is a raw payload # } # ] - } + }, + "category_id": categoryId }]) proc editCommunityChannel*(