Merge pull request #180 from matrix-org/erikj/prev_state_context

Don't needlessly compute prev_state
This commit is contained in:
Erik Johnston 2015-06-03 17:20:56 +01:00
commit 3bbd0d0e09
3 changed files with 5 additions and 5 deletions

View file

@ -169,10 +169,6 @@ class StateHandler(object):
context.current_state = curr_state
context.state_group = group if not event.is_state() else None
prev_state = yield self.store.add_event_hashes(
prev_state
)
if event.is_state():
key = (event.type, event.state_key)
if key in context.current_state: