diff options
author | Shay <hillerys@element.io> | 2023-03-07 13:54:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 13:54:39 -0800 |
commit | a368d30c1cfe7457fca4fcdd03ae481ba65a226c (patch) | |
tree | 9b7e69974604f0d7f73ef88617bfbfe8e1d8db33 /synapse/handlers/room.py | |
parent | Stabilize support for MSC3873: disambuguated event push keys. (#15190) (diff) | |
download | synapse-a368d30c1cfe7457fca4fcdd03ae481ba65a226c.tar.xz |
More speedups/fixes to creating batched events (#15195)
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room.py | 4 |
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, ) |