diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-01-29 17:58:01 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-01-30 22:15:50 +0000 |
commit | 54f3f369bd94ce22b3e052d4b795ad5d0c4618bc (patch) | |
tree | 711837bc2e233d6f9c921912b2b45eb643457c93 /synapse/federation | |
parent | Store the room version in EventBuilder (diff) | |
download | synapse-54f3f369bd94ce22b3e052d4b795ad5d0c4618bc.tar.xz |
Pass room_version into create_local_event_from_event_dict
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/federation_client.py | 4 |
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, ) |