mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-21 11:44:08 -04:00
Implement GET /groups/$groupId/invited_users
This commit is contained in:
parent
6079d0027a
commit
2c5972f87f
6 changed files with 115 additions and 1 deletions
|
@ -550,6 +550,19 @@ class TransportLayerClient(object):
|
|||
ignore_backoff=True,
|
||||
)
|
||||
|
||||
@log_function
|
||||
def get_invited_users_in_group(self, destination, group_id, requester_user_id):
|
||||
"""Get users that have been invited to a group
|
||||
"""
|
||||
path = PREFIX + "/groups/%s/invited_users" % (group_id,)
|
||||
|
||||
return self.client.get_json(
|
||||
destination=destination,
|
||||
path=path,
|
||||
args={"requester_user_id": requester_user_id},
|
||||
ignore_backoff=True,
|
||||
)
|
||||
|
||||
@log_function
|
||||
def accept_group_invite(self, destination, group_id, user_id, content):
|
||||
"""Accept a group invite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue