summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2022-06-10 11:01:55 +0100
committerRichard van der Hoff <richard@matrix.org>2022-06-12 23:13:10 +0100
commitc1b28b8842849a2b3e62025d378997861c041932 (patch)
treeb7f15b5bfb95937089dbe8741d7426f1e5c5d0a6 /synapse/handlers/room.py
parentRemove `room_version` param from `check_auth_rules_for_event` (diff)
downloadsynapse-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 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py3
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