summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-16 15:13:05 +0000
committerErik Johnston <erik@matrix.org>2015-03-16 15:13:05 +0000
commitf1d2b94e0b6fbdde811a7deef3ab4ab7386a207f (patch)
tree3e43e3acdb779de7c85ba701d67b64581442837c
parentRevert incorrect changes to where we send events (diff)
downloadsynapse-f1d2b94e0b6fbdde811a7deef3ab4ab7386a207f.tar.xz
Copy dict of context.current_state before changing it.
Diffstat (limited to '')
-rw-r--r--synapse/storage/state.py2
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