summary refs log tree commit diff
path: root/synapse/federation/federation_server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-23 17:19:58 +0000
committerErik Johnston <erik@matrix.org>2019-01-23 17:19:58 +0000
commit6a41d2a187ecef484a3aa67518ec9b4b0638c614 (patch)
treefea7991d2ccccf26952ca66b65b7a0a2a0ed2dd3 /synapse/federation/federation_server.py
parentMerge pull request #4445 from matrix-org/anoa/user_dir_develop_backport (diff)
downloadsynapse-6a41d2a187ecef484a3aa67518ec9b4b0638c614.tar.xz
Add room_version param to get_pdu
When we add new event format we'll need to know the event format or room
version when parsing events.
Diffstat (limited to 'synapse/federation/federation_server.py')
-rw-r--r--synapse/federation/federation_server.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py
index 37d29e7027..cb729c69ea 100644
--- a/synapse/federation/federation_server.py
+++ b/synapse/federation/federation_server.py
@@ -457,8 +457,10 @@ class FederationServer(FederationBase):
                 for e in content["auth_chain"]
             ]
 
+            room_version = yield self.store.get_room_version(room_id)
+
             signed_auth = yield self._check_sigs_and_hash_and_fetch(
-                origin, auth_chain, outlier=True
+                origin, auth_chain, outlier=True, room_version=room_version,
             )
 
             ret = yield self.handler.on_query_auth(