summary refs log tree commit diff
path: root/synapse/federation/federation_client.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-01-29 17:58:01 +0000
committerRichard van der Hoff <richard@matrix.org>2020-01-30 22:15:50 +0000
commit54f3f369bd94ce22b3e052d4b795ad5d0c4618bc (patch)
tree711837bc2e233d6f9c921912b2b45eb643457c93 /synapse/federation/federation_client.py
parentStore the room version in EventBuilder (diff)
downloadsynapse-54f3f369bd94ce22b3e052d4b795ad5d0c4618bc.tar.xz
Pass room_version into create_local_event_from_event_dict
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r--synapse/federation/federation_client.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index d57e8ca7a2..9be4b69cad 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -470,8 +470,6 @@ class FederationClient(FederationBase):
             if not room_version:
                 raise UnsupportedRoomVersionError()
 
-            event_format = room_version_to_event_format(room_version_id)
-
             pdu_dict = ret.get("event", None)
             if not isinstance(pdu_dict, dict):
                 raise InvalidResponseError("Bad 'event' field in response")
@@ -490,7 +488,7 @@ class FederationClient(FederationBase):
                 self._clock,
                 self.hostname,
                 self.signing_key,
-                format_version=event_format,
+                room_version=room_version,
                 event_dict=pdu_dict,
             )