Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1849 from matrix-org/erikj/state_typo
Browse files Browse the repository at this point in the history
Fix bug where current_state_events renamed to current_state_ids
  • Loading branch information
erikjohnston authored Mar 29, 2017
2 parents 85be3dd + 41dab8a commit b9c2ae6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ def compute_event_context(self, event, old_state=None):
(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 = {}
Expand Down

0 comments on commit b9c2ae6

Please sign in to comment.