refactor(community): add function to get pending membership requests (#164)

This commit is contained in:
Jonathan Rainville 2022-01-17 09:13:55 -05:00 committed by saledjenic
parent a10c32c7f4
commit e9342e73c6
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ proc requestToJoinCommunity*(communityId: string, ensName: string): RpcResponse[
proc myPendingRequestsToJoin*(): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("myPendingRequestsToJoin".prefix)
proc pendingRequestsToJoinForCommunity*(communityId: string): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("pendingRequestsToJoinForCommunity".prefix, %*[communityId])
proc leaveCommunity*(communityId: string): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("leaveCommunity".prefix, %*[communityId])