summary refs log tree commit diff
path: root/synapse/federation/transport/client.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-08 16:13:03 +0000
committerGitHub <noreply@github.com>2018-08-08 16:13:03 +0000
commit5298d79fb58b8792bc0dd3b4a34b84339d4f4845 (patch)
treedaedd358c898cd879bb5eb365f0f466d6944883b /synapse/federation/transport/client.py
parentMerge branch 'develop' into neilj/disable_hs (diff)
parentMerge pull request #3654 from matrix-org/rav/room_versions (diff)
downloadsynapse-5298d79fb58b8792bc0dd3b4a34b84339d4f4845.tar.xz
Merge branch 'develop' into neilj/disable_hs
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r--synapse/federation/transport/client.py5
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,