mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 20:54:50 -04:00
Merge pull request #180 from matrix-org/erikj/prev_state_context
Don't needlessly compute prev_state
This commit is contained in:
commit
3bbd0d0e09
3 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue