diff options
author | Erik Johnston <erik@matrix.org> | 2017-07-10 15:44:15 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-07-10 15:44:15 +0100 |
commit | b8ca494ee9e42e5b1aca8958088bd35cc5707437 (patch) | |
tree | b5e9cfaebfe6014f510f346dc9758e03a8be1f70 /synapse/federation/transport/client.py | |
parent | Include registration and as stores in frontend proxy (diff) | |
download | synapse-b8ca494ee9e42e5b1aca8958088bd35cc5707437.tar.xz |
Initial group server implementation
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r-- | synapse/federation/transport/client.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index 52b2a717d2..17b93a28ab 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -471,3 +471,37 @@ class TransportLayerClient(object): ) defer.returnValue(content) + + @log_function + def invite_to_group_notification(self, destination, group_id, user_id, content): + path = PREFIX + "/groups/local/%s/users/%s/invite" % (group_id, user_id) + + return self.client.post_json( + destination=destination, + path=path, + data=content, + ignore_backoff=True, + ) + + @log_function + def remove_user_from_group_notification(self, destination, group_id, user_id, + content): + path = PREFIX + "/groups/local/%s/users/%s/remove" % (group_id, user_id) + + return self.client.post_json( + destination=destination, + path=path, + data=content, + ignore_backoff=True, + ) + + @log_function + def renew_group_attestation(self, destination, group_id, user_id, content): + path = PREFIX + "/groups/%s/renew_attestation/%s" % (group_id, user_id) + + return self.client.post_json( + destination=destination, + path=path, + data=content, + ignore_backoff=True, + ) |