mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 18:04:49 -04:00
Use RoomVersion
objects (#10934)
Various refactors to use `RoomVersion` objects instead of room version identifiers.
This commit is contained in:
parent
2be0fde3d6
commit
5279b9161b
5 changed files with 50 additions and 48 deletions
|
@ -237,9 +237,9 @@ class RoomCreationHandler(BaseHandler):
|
|||
},
|
||||
},
|
||||
)
|
||||
old_room_version = await self.store.get_room_version_id(old_room_id)
|
||||
old_room_version = await self.store.get_room_version(old_room_id)
|
||||
await self._event_auth_handler.check_from_context(
|
||||
old_room_version, tombstone_event, tombstone_context
|
||||
old_room_version.identifier, tombstone_event, tombstone_context
|
||||
)
|
||||
|
||||
await self.clone_existing_room(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue