mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-07 17:32:45 +00:00
Copy dict of context.current_state before changing it.
This commit is contained in:
@@ -82,7 +82,7 @@ class StateStore(SQLBaseStore):
|
||||
if context.current_state is None:
|
||||
return
|
||||
|
||||
state_events = context.current_state
|
||||
state_events = dict(context.current_state)
|
||||
|
||||
if event.is_state():
|
||||
state_events[(event.type, event.state_key)] = event
|
||||
|
||||
Reference in New Issue
Block a user