summary refs log tree commit diff
path: root/synapse/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-10-31 10:47:04 +0000
committerErik Johnston <erik@matrix.org>2014-10-31 10:47:04 +0000
commitd84f5b30b8dbccf4bba22c09a08d184fa1911b45 (patch)
tree0d938eabb7d9f629d290c69113f9b1ffda0d1812 /synapse/state.py
parentDon't store any PDUs (diff)
downloadsynapse-d84f5b30b8dbccf4bba22c09a08d184fa1911b45.tar.xz
old_state_events should be a dict not list
Diffstat (limited to 'synapse/state.py')
-rw-r--r--synapse/state.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/state.py b/synapse/state.py
index 414701b272..c514b118ae 100644
--- a/synapse/state.py
+++ b/synapse/state.py
@@ -138,8 +138,10 @@ class StateHandler(object):
 
         if old_state:
             event.state_group = None
-            event.old_state_events = old_state
-            event.state_events = {(s.type, s.state_key): s for s in old_state}
+            event.old_state_events = {
+                (s.type, s.state_key): s for s in old_state
+            }
+            event.state_events = event.old_state_events
 
             if hasattr(event, "state_key"):
                 event.state_events[(event.type, event.state_key)] = event