diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-31 13:55:02 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-31 14:26:22 +0100 |
commit | c10cb581c6ce54e7dfa1f8a0f6449ee7f6d049d4 (patch) | |
tree | 18c7bb219894d6d75489ff33e92b3cba897aa872 /synapse/api/auth.py | |
parent | Generate state group ids in state layer (diff) | |
download | synapse-c10cb581c6ce54e7dfa1f8a0f6449ee7f6d049d4.tar.xz |
Correctly handle the difference between prev and current state
Diffstat (limited to '')
-rw-r--r-- | synapse/api/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index f26e585623..fcf0b0d25f 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -66,7 +66,7 @@ class Auth(object): @defer.inlineCallbacks def check_from_context(self, event, context, do_sig_check=True): auth_events_ids = yield self.compute_auth_events( - event, context.current_state_ids, for_verification=True, + event, context.prev_state_ids, for_verification=True, ) auth_events = yield self.store.get_events(auth_events_ids) auth_events = { @@ -852,7 +852,7 @@ class Auth(object): @defer.inlineCallbacks def add_auth_events(self, builder, context): - auth_ids = yield self.compute_auth_events(builder, context.current_state_ids) + auth_ids = yield self.compute_auth_events(builder, context.prev_state_ids) auth_events_entries = yield self.store.add_event_hashes( auth_ids |