mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Modify group room association API to allow modification of is_public
also includes renamings to make things more consistent.
This commit is contained in:
parent
c31a7c3ff6
commit
20fe347906
6 changed files with 25 additions and 19 deletions
|
@ -451,7 +451,7 @@ class GroupAdminRoomsServlet(RestServlet):
|
|||
requester_user_id = requester.user.to_string()
|
||||
|
||||
content = parse_json_object_from_request(request)
|
||||
result = yield self.groups_handler.add_room_to_group(
|
||||
result = yield self.groups_handler.update_room_group_association(
|
||||
group_id, requester_user_id, room_id, content,
|
||||
)
|
||||
|
||||
|
@ -462,7 +462,7 @@ class GroupAdminRoomsServlet(RestServlet):
|
|||
requester = yield self.auth.get_user_by_req(request)
|
||||
requester_user_id = requester.user.to_string()
|
||||
|
||||
result = yield self.groups_handler.remove_room_from_group(
|
||||
result = yield self.groups_handler.delete_room_group_association(
|
||||
group_id, requester_user_id, room_id,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue