mirror of
https://github.com/status-im/status-lib.git
synced 2025-02-11 11:57:29 +00:00
refactor(community): add invite function (#158)
This commit is contained in:
parent
0f84fd2621
commit
240c7a3650
@ -221,3 +221,9 @@ proc banUserFromCommunity*(communityId: string, pubKey: string): RpcResponse[Jso
|
|||||||
|
|
||||||
proc setCommunityMuted*(communityId: string, muted: bool): RpcResponse[JsonNode] {.raises: [Exception].} =
|
proc setCommunityMuted*(communityId: string, muted: bool): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||||
return callPrivateRPC("setCommunityMuted".prefix, %*[communityId, muted])
|
return callPrivateRPC("setCommunityMuted".prefix, %*[communityId, muted])
|
||||||
|
|
||||||
|
proc inviteUsersToCommunity*(communityId: string, pubKeys: seq[string]): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||||
|
return callPrivateRPC("inviteUsersToCommunity".prefix, %*[{
|
||||||
|
"communityId": communityId,
|
||||||
|
"users": pubKeys
|
||||||
|
}])
|
Loading…
x
Reference in New Issue
Block a user