From bec24ce7c4e368216fc497f730ce5bfcbc536449 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 1 Feb 2022 17:43:32 -0400 Subject: [PATCH] refactor(communities): add back reorderCommunityChat function --- status/communities.nim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/status/communities.nim b/status/communities.nim index 94fcfcc..94fca30 100644 --- a/status/communities.nim +++ b/status/communities.nim @@ -140,6 +140,14 @@ proc editCommunityChannel*( "position": position }]) +proc reorderCommunityCategories*(communityId: string, categoryId: string, position: int): RpcResponse[JsonNode] {.raises: [Exception].} = + result = callPrivateRPC("reorderCommunityCategories".prefix, %*[ + { + "communityId": communityId, + "categoryId": categoryId, + "position": position + }]) + proc reorderCommunityChat*( communityId: string, categoryId: string,