summary refs log tree commit diff
diff options
context:
space:
mode:
-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