summary refs log tree commit diff
path: root/synapse/federation/transport/client.py
diff options
context:
space:
mode:
authorLuke Barnard <lukeb@openmarket.com>2017-10-16 15:31:11 +0100
committerLuke Barnard <lukeb@openmarket.com>2017-10-16 15:31:11 +0100
commit2c5972f87f0541aaeff43846f7050ab91d11cf0e (patch)
tree9d58fc7426e62ed576a4ede3f8a59d9825025dec /synapse/federation/transport/client.py
parentLog a warning when no profile for invited member (diff)
downloadsynapse-2c5972f87f0541aaeff43846f7050ab91d11cf0e.tar.xz
Implement GET /groups/$groupId/invited_users
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r--synapse/federation/transport/client.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py
index f96561c1fe..125d8f3598 100644
--- a/synapse/federation/transport/client.py
+++ b/synapse/federation/transport/client.py
@@ -551,6 +551,19 @@ class TransportLayerClient(object):
         )
 
     @log_function
+    def get_invited_users_in_group(self, destination, group_id, requester_user_id):
+        """Get users that have been invited to a group
+        """
+        path = PREFIX + "/groups/%s/invited_users" % (group_id,)
+
+        return self.client.get_json(
+            destination=destination,
+            path=path,
+            args={"requester_user_id": requester_user_id},
+            ignore_backoff=True,
+        )
+
+    @log_function
     def accept_group_invite(self, destination, group_id, user_id, content):
         """Accept a group invite
         """