summary refs log tree commit diff
path: root/synapse/groups/groups_server.py
diff options
context:
space:
mode:
authorLuke Barnard <luke@matrix.org>2018-04-06 11:37:49 +0100
committerLuke Barnard <luke@matrix.org>2018-04-06 15:43:27 +0100
commitb4478e586fe52392a439c94f525c3d885454f0a8 (patch)
tree95309df6e745b75cc269aa4b973785fafb145ccf /synapse/groups/groups_server.py
parentpep8 (diff)
downloadsynapse-b4478e586fe52392a439c94f525c3d885454f0a8.tar.xz
add_user -> _add_user
Diffstat (limited to 'synapse/groups/groups_server.py')
-rw-r--r--synapse/groups/groups_server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/groups/groups_server.py b/synapse/groups/groups_server.py
index 15d31549de..72dfed7dbb 100644
--- a/synapse/groups/groups_server.py
+++ b/synapse/groups/groups_server.py
@@ -678,7 +678,7 @@ class GroupsServerHandler(object):
             raise SynapseError(502, "Unknown state returned by HS")
 
     @defer.inlineCallbacks
-    def add_user(self, group_id, user_id, content):
+    def _add_user(self, group_id, user_id, content):
         """Add a user to a group based on a content dict.
 
         See accept_invite, join_group.
@@ -727,7 +727,7 @@ class GroupsServerHandler(object):
         if not is_invited:
             raise SynapseError(403, "User not invited to group")
 
-        local_attestation = yield self.add_user(group_id, requester_user_id, content)
+        local_attestation = yield self._add_user(group_id, requester_user_id, content)
 
         defer.returnValue({
             "state": "join",
@@ -747,7 +747,7 @@ class GroupsServerHandler(object):
         if group_info['join_policy'] != "open":
             raise SynapseError(403, "Group is not publicly joinable")
 
-        local_attestation = yield self.add_user(group_id, requester_user_id, content)
+        local_attestation = yield self._add_user(group_id, requester_user_id, content)
 
         defer.returnValue({
             "state": "join",