summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorJason Little <realtyem@gmail.com>2023-03-08 06:22:27 -0600
committerGitHub <noreply@github.com>2023-03-08 06:22:27 -0600
commit0cf5e80870de37cc5115447f5a06d785f5cf8718 (patch)
tree8c705ee2208b5842d99e3828b41c1d8ff1cdbb32 /synapse/handlers/room.py
parentRemove condition based on number of ports (diff)
parentMore speedups/fixes to creating batched events (#15195) (diff)
downloadsynapse-0cf5e80870de37cc5115447f5a06d785f5cf8718.tar.xz
Merge branch 'develop' into comp-worker-shorthand
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index b1784638f4..32451670f3 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -1123,7 +1123,9 @@ class RoomCreationHandler:
                 event_dict,
                 prev_event_ids=prev_event,
                 depth=depth,
-                state_map=state_map,
+                # Take a copy to ensure each event gets a unique copy of
+                # state_map since it is modified below.
+                state_map=dict(state_map),
                 for_batch=for_batch,
             )