refactor(community): add invite function (#158)
This commit is contained in:
parent
0f84fd2621
commit
240c7a3650
|
@ -220,4 +220,10 @@ proc banUserFromCommunity*(communityId: string, pubKey: string): RpcResponse[Jso
|
|||
}])
|
||||
|
||||
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…
Reference in New Issue