Revert "Modify group room association API to allow modification of is_public"

This commit is contained in:
Erik Johnston 2017-11-08 15:43:34 +00:00 committed by GitHub
parent d305987b40
commit 94ff2cda73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 32 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.update_room_group_association(
new_content = yield self.handler.add_room_to_group(
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.delete_room_group_association(
new_content = yield self.handler.remove_room_from_group(
group_id, requester_user_id, room_id,
)