summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-09-29 10:57:10 +0100
committerGitHub <noreply@github.com>2021-09-29 10:57:10 +0100
commit5279b9161b323cccdb74dcdf1a68fa7e19f091d4 (patch)
tree30d7ee98df278dc9495d5f0324c40b0df6cf0c94 /synapse/handlers/room.py
parentFix empty `url_cache_thumbnails/yyyy-mm-dd/` directories being left behind (#... (diff)
downloadsynapse-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.py4
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(