diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-16 15:13:05 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-16 15:13:05 +0000 |
commit | f1d2b94e0b6fbdde811a7deef3ab4ab7386a207f (patch) | |
tree | 3e43e3acdb779de7c85ba701d67b64581442837c | |
parent | Revert incorrect changes to where we send events (diff) | |
download | synapse-f1d2b94e0b6fbdde811a7deef3ab4ab7386a207f.tar.xz |
Copy dict of context.current_state before changing it.
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index 71db16d0e5..456e4bd45d 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -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 |