mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 01:02:13 -04:00
Add remove room API
This commit is contained in:
parent
a8e2a3df32
commit
17b8e2bd02
6 changed files with 72 additions and 1 deletions
|
@ -525,6 +525,18 @@ class TransportLayerClient(object):
|
|||
ignore_backoff=True,
|
||||
)
|
||||
|
||||
def remove_room_from_group(self, destination, group_id, requester_user_id, room_id):
|
||||
"""Remove a room from a group
|
||||
"""
|
||||
path = PREFIX + "/groups/%s/room/%s" % (group_id, room_id,)
|
||||
|
||||
return self.client.delete_json(
|
||||
destination=destination,
|
||||
path=path,
|
||||
args={"requester_user_id": requester_user_id},
|
||||
ignore_backoff=True,
|
||||
)
|
||||
|
||||
@log_function
|
||||
def get_users_in_group(self, destination, group_id, requester_user_id):
|
||||
"""Get users in a group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue