diff options
author | Erik Johnston <erik@matrix.org> | 2017-07-11 11:52:03 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-07-11 11:52:03 +0100 |
commit | 6322fbbd41b3a44bc67982fd56999c317df08c08 (patch) | |
tree | 408ee094c4adbbcbf395dad4ac61bfa4c83ac110 /synapse/federation/transport/client.py | |
parent | Remove u/ requirement (diff) | |
download | synapse-6322fbbd41b3a44bc67982fd56999c317df08c08.tar.xz |
Comment
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r-- | synapse/federation/transport/client.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index 17b93a28ab..d0f8da7516 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -474,6 +474,10 @@ class TransportLayerClient(object): @log_function def invite_to_group_notification(self, destination, group_id, user_id, content): + """Sent by group server to inform a user's server that they have been + invited. + """ + path = PREFIX + "/groups/local/%s/users/%s/invite" % (group_id, user_id) return self.client.post_json( @@ -486,6 +490,10 @@ class TransportLayerClient(object): @log_function def remove_user_from_group_notification(self, destination, group_id, user_id, content): + """Sent by group server to inform a user's server that they have been + kicked from the group. + """ + path = PREFIX + "/groups/local/%s/users/%s/remove" % (group_id, user_id) return self.client.post_json( @@ -497,6 +505,10 @@ class TransportLayerClient(object): @log_function def renew_group_attestation(self, destination, group_id, user_id, content): + """Sent by either a group server or a user's server to periodically update + the attestations + """ + path = PREFIX + "/groups/%s/renew_attestation/%s" % (group_id, user_id) return self.client.post_json( |