diff options
author | Luke Barnard <lukeb@openmarket.com> | 2017-10-31 17:20:11 +0000 |
---|---|---|
committer | Luke Barnard <lukeb@openmarket.com> | 2017-10-31 17:20:11 +0000 |
commit | 13b3d7b4a08d3456cf3adc0a68b2a0a2fc60098b (patch) | |
tree | 3926d73778483ec57960e35ffe738a60594be170 /synapse/groups | |
parent | Modify group room association API to allow modification of is_public (diff) | |
download | synapse-13b3d7b4a08d3456cf3adc0a68b2a0a2fc60098b.tar.xz |
Flake8
Diffstat (limited to '')
-rw-r--r-- | synapse/groups/groups_server.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/groups/groups_server.py b/synapse/groups/groups_server.py index c91d8e624f..69831eacbd 100644 --- a/synapse/groups/groups_server.py +++ b/synapse/groups/groups_server.py @@ -531,7 +531,8 @@ class GroupsServerHandler(object): }) @defer.inlineCallbacks - def update_room_group_association(self, group_id, requester_user_id, room_id, content): + def update_room_group_association(self, group_id, requester_user_id, room_id, + content): """Add room to group """ RoomID.from_string(room_id) # Ensure valid room id @@ -542,7 +543,9 @@ class GroupsServerHandler(object): is_public = _parse_visibility_from_contents(content) - yield self.store.update_room_group_association(group_id, room_id, is_public=is_public) + yield self.store.update_room_group_association( + group_id, room_id, is_public=is_public + ) defer.returnValue({}) |