diff options
author | Luke Barnard <lukebarnard1@users.noreply.github.com> | 2017-10-16 17:33:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-16 17:33:33 +0200 |
commit | e0a75e0c253321bca6f00f79815eac11ce003988 (patch) | |
tree | 68e666ef8c0c3f478aba9dab51c1d7c66cad9f5b /synapse/storage | |
parent | Merge pull request #2543 from matrix-org/luke/fix-on-group-invite-no-profile (diff) | |
parent | Delint (diff) | |
download | synapse-e0a75e0c253321bca6f00f79815eac11ce003988.tar.xz |
Merge pull request #2544 from matrix-org/luke/groups-invited-users
Implement GET /groups/$groupId/invited_users
Diffstat (limited to 'synapse/storage')
-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 |