Don't needlessly compute prev_state

This commit is contained in:
Erik Johnston 2015-06-03 16:06:39 +01:00
parent 3483b78d1a
commit 55bf90b9e4
3 changed files with 5 additions and 5 deletions

View file

@ -78,7 +78,9 @@ class BaseHandler(object):
context = yield state_handler.compute_event_context(builder)
if builder.is_state():
builder.prev_state = context.prev_state_events
builder.prev_state = yield self.store.add_event_hashes(
context.prev_state_events
)
yield self.auth.add_auth_events(builder, context)