refactor(communities): add back reorderCommunityChat function

This commit is contained in:
Richard Ramos 2022-02-01 17:43:32 -04:00
parent 4eab2fa86b
commit bec24ce7c4
No known key found for this signature in database
GPG Key ID: BD36D48BC9FFC88C
1 changed files with 8 additions and 0 deletions

View File

@ -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,