diff options
author | Richard van der Hoff <richard@matrix.org> | 2022-06-10 11:01:55 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2022-06-12 23:13:10 +0100 |
commit | c1b28b8842849a2b3e62025d378997861c041932 (patch) | |
tree | b7f15b5bfb95937089dbe8741d7426f1e5c5d0a6 /synapse/handlers/room.py | |
parent | Remove `room_version` param from `check_auth_rules_for_event` (diff) | |
download | synapse-c1b28b8842849a2b3e62025d378997861c041932.tar.xz |
Remove redundant `room_version` param from `check_auth_rules_from_context`
It's now implied by the room_version property on the event.
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 44d9784077..d8918ee1aa 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -226,10 +226,9 @@ class RoomCreationHandler: }, }, ) - old_room_version = await self.store.get_room_version(old_room_id) validate_event_for_room_version(tombstone_event) await self._event_auth_handler.check_auth_rules_from_context( - old_room_version, tombstone_event, tombstone_context + tombstone_event, tombstone_context ) # Upgrade the room |