diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-08-06 13:45:37 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-08-06 13:45:37 +0100 |
commit | f900d508244b4277065d34dd9a05224fd60d5221 (patch) | |
tree | e84050f5e8fe32559d3281040c0a4aeba1c4b758 /synapse/federation/transport/client.py | |
parent | sanity check response from make_join (diff) | |
download | synapse-f900d508244b4277065d34dd9a05224fd60d5221.tar.xz |
include known room versions in outgoing make_joins
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r-- | synapse/federation/transport/client.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index 4529d454af..b4fbe2c9d5 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -195,7 +195,7 @@ class TransportLayerClient(object): @defer.inlineCallbacks @log_function - def make_membership_event(self, destination, room_id, user_id, membership): + def make_membership_event(self, destination, room_id, user_id, membership, params): """Asks a remote server to build and sign us a membership event Note that this does not append any events to any graphs. @@ -205,6 +205,8 @@ class TransportLayerClient(object): room_id (str): room to join/leave user_id (str): user to be joined/left membership (str): one of join/leave + params (dict[str, str|Iterable[str]]): Query parameters to include in the + request. Returns: Deferred: Succeeds when we get a 2xx HTTP response. The result @@ -241,6 +243,7 @@ class TransportLayerClient(object): content = yield self.client.get_json( destination=destination, path=path, + args=params, retry_on_dns_fail=retry_on_dns_fail, timeout=20000, ignore_backoff=ignore_backoff, |