diff options
author | Luke Barnard <lukeb@openmarket.com> | 2017-10-16 15:31:11 +0100 |
---|---|---|
committer | Luke Barnard <lukeb@openmarket.com> | 2017-10-16 15:31:11 +0100 |
commit | 2c5972f87f0541aaeff43846f7050ab91d11cf0e (patch) | |
tree | 9d58fc7426e62ed576a4ede3f8a59d9825025dec /synapse/handlers/groups_local.py | |
parent | Log a warning when no profile for invited member (diff) | |
download | synapse-2c5972f87f0541aaeff43846f7050ab91d11cf0e.tar.xz |
Implement GET /groups/$groupId/invited_users
Diffstat (limited to 'synapse/handlers/groups_local.py')
-rw-r--r-- | synapse/handlers/groups_local.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/synapse/handlers/groups_local.py b/synapse/handlers/groups_local.py index 97a20f2b04..5263e769bb 100644 --- a/synapse/handlers/groups_local.py +++ b/synapse/handlers/groups_local.py @@ -220,6 +220,23 @@ class GroupsLocalHandler(object): defer.returnValue(res) @defer.inlineCallbacks + def get_invited_users_in_group(self, group_id, requester_user_id): + """Get users invited to a group + """ + if self.is_mine_id(group_id): + res = yield self.groups_server_handler.get_invited_users_in_group( + group_id, requester_user_id + ) + defer.returnValue(res) + + group_server_name = get_domain_from_id(group_id) + + res = yield self.transport_client.get_users_in_group( + get_domain_from_id(group_id), group_id, requester_user_id, + ) + defer.returnValue(res) + + @defer.inlineCallbacks def join_group(self, group_id, user_id, content): """Request to join a group """ |