diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-08 09:08:26 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-08 09:08:26 +0000 |
commit | d044121168672c657e595525af9b588c8769e9bb (patch) | |
tree | 3f79777ad368b4d5d4042a629c53146125fd15b3 /synapse/storage/state.py | |
parent | Start making more things use EventContext rather than event.* (diff) | |
download | synapse-d044121168672c657e595525af9b588c8769e9bb.tar.xz |
Various typos and bug fixes.
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r-- | synapse/storage/state.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index b8e721ad72..afe3e5edea 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -87,10 +87,10 @@ class StateStore(SQLBaseStore): ) def _store_state_groups_txn(self, txn, event, context): - if context.current_state_events is None: + if context.current_state is None: return - state_events = context.current_state_events + state_events = context.current_state if event.is_state(): state_events[(event.type, event.state_key)] = event @@ -107,7 +107,7 @@ class StateStore(SQLBaseStore): or_ignore=True, ) - for state in context.state_events.values(): + for state in state_events.values(): self._simple_insert_txn( txn, table="state_groups_state", |