mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 10:19:21 -05:00
Copy dict of context.current_state before changing it.
This commit is contained in:
parent
857810d2dd
commit
f1d2b94e0b
@ -82,7 +82,7 @@ class StateStore(SQLBaseStore):
|
|||||||
if context.current_state is None:
|
if context.current_state is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
state_events = context.current_state
|
state_events = dict(context.current_state)
|
||||||
|
|
||||||
if event.is_state():
|
if event.is_state():
|
||||||
state_events[(event.type, event.state_key)] = event
|
state_events[(event.type, event.state_key)] = event
|
||||||
|
Loading…
Reference in New Issue
Block a user