Remove redundant room_version param from check_auth_rules_from_context

It's now implied by the room_version property on the event.
This commit is contained in:
Richard van der Hoff 2022-06-10 11:01:55 +01:00
parent 0d9d36b15c
commit c1b28b8842
4 changed files with 8 additions and 35 deletions

View file

@ -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