summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-03-28 14:03:37 +0100
committerDavid Baker <dave@matrix.org>2018-03-28 14:03:37 +0100
commit79452edeee94a09a826ee2b41a08811b823a3ad6 (patch)
treebdaa7170826c96481040394a679e5970f9d69d85 /synapse/handlers
parentfix typo (diff)
downloadsynapse-79452edeee94a09a826ee2b41a08811b823a3ad6.tar.xz
Add joinability for groups
Adds API to set the 'joinable' flag, and corresponding flag in the
table.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/groups_local.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/groups_local.py b/synapse/handlers/groups_local.py

index e4d0cc8b02..c9671b9046 100644 --- a/synapse/handlers/groups_local.py +++ b/synapse/handlers/groups_local.py
@@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # Copyright 2017 Vector Creations Ltd +# Copyright 2018 New Vector Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -90,6 +91,8 @@ class GroupsLocalHandler(object): get_group_role = _create_rerouter("get_group_role") get_group_roles = _create_rerouter("get_group_roles") + set_group_joinable = _create_rerouter("set_group_joinable") + @defer.inlineCallbacks def get_group_summary(self, group_id, requester_user_id): """Get the group summary for a group.