diff options
author | Erik Johnston <erik@matrix.org> | 2014-10-31 10:47:04 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-10-31 10:47:04 +0000 |
commit | d84f5b30b8dbccf4bba22c09a08d184fa1911b45 (patch) | |
tree | 0d938eabb7d9f629d290c69113f9b1ffda0d1812 /synapse/state.py | |
parent | Don't store any PDUs (diff) | |
download | synapse-d84f5b30b8dbccf4bba22c09a08d184fa1911b45.tar.xz |
old_state_events should be a dict not list
Diffstat (limited to '')
-rw-r--r-- | synapse/state.py | 6 |
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 |