From d84f5b30b8dbccf4bba22c09a08d184fa1911b45 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 31 Oct 2014 10:47:04 +0000 Subject: old_state_events should be a dict not list --- synapse/state.py | 6 ++++-- 1 file 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 -- cgit 1.4.1