mirror of
https://github.com/status-im/status-lib.git
synced 2025-02-11 03:46:51 +00:00
refactor(community): add function to get pending membership requests (#164)
This commit is contained in:
parent
a10c32c7f4
commit
e9342e73c6
@ -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])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user