diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-09-29 10:57:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 10:57:10 +0100 |
commit | 5279b9161b323cccdb74dcdf1a68fa7e19f091d4 (patch) | |
tree | 30d7ee98df278dc9495d5f0324c40b0df6cf0c94 /synapse/handlers/room.py | |
parent | Fix empty `url_cache_thumbnails/yyyy-mm-dd/` directories being left behind (#... (diff) | |
download | synapse-5279b9161b323cccdb74dcdf1a68fa7e19f091d4.tar.xz |
Use `RoomVersion` objects (#10934)
Various refactors to use `RoomVersion` objects instead of room version identifiers.
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 8fede5e935..dc4fab2223 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -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( |