diff options
author | Richard van der Hoff <richard@matrix.org> | 2022-06-09 15:51:34 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2022-06-12 23:13:09 +0100 |
commit | 68be42f6b6433e93c7dccc0eae70177500ca60bc (patch) | |
tree | c9f73fb98a172ebdab4a95c7007428946e8392b0 /synapse/handlers/room.py | |
parent | EventAuthTestCase: build events for the right room version (diff) | |
download | synapse-68be42f6b6433e93c7dccc0eae70177500ca60bc.tar.xz |
Remove `room_version` param from `validate_event_for_room_version`
Instead, use the `room_version` property of the event we're validating. The `room_version` was originally added as a parameter somewhere around #4482, but really it's been redundant since #6875 added a `room_version` field to `EventBase`.
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 520663f172..44d9784077 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -227,7 +227,7 @@ class RoomCreationHandler: }, ) old_room_version = await self.store.get_room_version(old_room_id) - validate_event_for_room_version(old_room_version, tombstone_event) + validate_event_for_room_version(tombstone_event) await self._event_auth_handler.check_auth_rules_from_context( old_room_version, tombstone_event, tombstone_context ) |