diff options
author | Erik Johnston <erik@matrix.org> | 2017-11-08 16:13:27 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-11-08 16:13:27 +0000 |
commit | e8814410ef682a1e277a1cfe6fda7268fd7a33d6 (patch) | |
tree | 56020619a56a2483ff69427aff5e4f223c8d7ade /synapse/federation/transport/client.py | |
parent | Revert "Modify group room association API to allow modification of is_public" (diff) | |
download | synapse-e8814410ef682a1e277a1cfe6fda7268fd7a33d6.tar.xz |
Have an explicit API to update room config
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r-- | synapse/federation/transport/client.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index d25ae1b282..1f3ce238f6 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -545,6 +545,20 @@ class TransportLayerClient(object): ignore_backoff=True, ) + def update_room_in_group(self, destination, group_id, requester_user_id, room_id, + config_key, content): + """Update room in group + """ + path = PREFIX + "/groups/%s/room/%s/config/%s" % (group_id, room_id, config_key,) + + return self.client.post_json( + destination=destination, + path=path, + args={"requester_user_id": requester_user_id}, + data=content, + ignore_backoff=True, + ) + def remove_room_from_group(self, destination, group_id, requester_user_id, room_id): """Remove a room from a group """ |