summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 0970e88ad5..b244222387 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -1067,12 +1067,13 @@ class RoomCreationHandler:
 
             event_dict = create_event_dict(etype, content, **kwargs)
 
-            event = await self.event_creation_handler.create_event_for_batch(
+            event = await self.event_creation_handler.create_event(
                 creator,
                 event_dict,
-                prev_event,
-                depth=depth,
+                prev_event_ids=prev_event,
                 auth_event_ids=auth_event_ids,
+                depth=depth,
+                for_batch=True,
             )
             depth += 1
             prev_event = [event.event_id]