summary refs log tree commit diff
path: root/synapse/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-31 10:11:07 +0100
committerErik Johnston <erik@matrix.org>2017-03-31 10:11:07 +0100
commitd7dbc56c716e805c61f768e35acba590ec86667b (patch)
treedaeebe671813605cd33e13b72374f611c0a2b549 /synapse/state.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parentMerge pull request #2075 from matrix-org/erikj/cache_speed (diff)
downloadsynapse-d7dbc56c716e805c61f768e35acba590ec86667b.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/state.py')
-rw-r--r--synapse/state.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/state.py b/synapse/state.py

index 9a523a1b89..f6b83d888a 100644 --- a/synapse/state.py +++ b/synapse/state.py
@@ -195,11 +195,11 @@ class StateHandler(object): (s.type, s.state_key): s.event_id for s in old_state } if event.is_state(): - context.current_state_events = dict(context.prev_state_ids) + context.current_state_ids = dict(context.prev_state_ids) key = (event.type, event.state_key) - context.current_state_events[key] = event.event_id + context.current_state_ids[key] = event.event_id else: - context.current_state_events = context.prev_state_ids + context.current_state_ids = context.prev_state_ids else: context.current_state_ids = {} context.prev_state_ids = {}