Hit the 3pid unbind endpoint on deactivation

This commit is contained in:
David Baker 2018-05-23 14:38:56 +01:00
parent 0a078026ea
commit 2c7866d664
4 changed files with 63 additions and 12 deletions

View file

@ -262,14 +262,19 @@ class MatrixFederationHttpClient(object):
defer.returnValue(response)
def sign_request(self, destination, method, url_bytes, headers_dict,
content=None):
content=None, destination_is=None):
request = {
"method": method,
"uri": url_bytes,
"origin": self.server_name,
"destination": destination,
}
if destination is not None:
request["destination"] = destination
if destination_is is not None:
request["destination_is"] = destination_is
if content is not None:
request["content"] = content