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/storage/group_server.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/storage/group_server.py')
-rw-r--r-- | synapse/storage/group_server.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/storage/group_server.py b/synapse/storage/group_server.py index 3af372de59..9e63db5c6c 100644 --- a/synapse/storage/group_server.py +++ b/synapse/storage/group_server.py @@ -56,6 +56,18 @@ class GroupServerStore(SQLBaseStore): desc="get_users_in_group", ) + def get_invited_users_in_group(self, group_id): + # TODO: Pagination + + return self._simple_select_onecol( + table="group_invites", + keyvalues={ + "group_id": group_id, + }, + retcol="user_id", + desc="get_invited_users_in_group", + ) + def get_rooms_in_group(self, group_id, include_private=False): # TODO: Pagination |