Modify group room association API to allow modification of is_public

also includes renamings to make things more consistent.
This commit is contained in:
Luke Barnard 2017-10-31 17:04:28 +00:00
parent c31a7c3ff6
commit 20fe347906
6 changed files with 25 additions and 19 deletions

View file

@ -684,7 +684,7 @@ class FederationGroupsAddRoomsServlet(BaseFederationServlet):
if get_domain_from_id(requester_user_id) != origin:
raise SynapseError(403, "requester_user_id doesn't match origin")
new_content = yield self.handler.add_room_to_group(
new_content = yield self.handler.update_room_group_association(
group_id, requester_user_id, room_id, content
)
@ -696,7 +696,7 @@ class FederationGroupsAddRoomsServlet(BaseFederationServlet):
if get_domain_from_id(requester_user_id) != origin:
raise SynapseError(403, "requester_user_id doesn't match origin")
new_content = yield self.handler.remove_room_from_group(
new_content = yield self.handler.delete_room_group_association(
group_id, requester_user_id, room_id,
)