mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 01:54:48 -04:00
Update the current state of an event if we update auth events.
This commit is contained in:
parent
823999716e
commit
0c2d245fdf
1 changed files with 3 additions and 1 deletions
|
@ -706,7 +706,6 @@ class FederationHandler(BaseHandler):
|
||||||
event.event_id, e.msg
|
event.event_id, e.msg
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO: Store rejection.
|
|
||||||
context.rejected = RejectedReason.AUTH_ERROR
|
context.rejected = RejectedReason.AUTH_ERROR
|
||||||
|
|
||||||
yield self.store.persist_event(
|
yield self.store.persist_event(
|
||||||
|
@ -828,6 +827,9 @@ class FederationHandler(BaseHandler):
|
||||||
# 4. Look at rejects and their proofs.
|
# 4. Look at rejects and their proofs.
|
||||||
# TODO.
|
# TODO.
|
||||||
|
|
||||||
|
context.current_state.update(auth_events)
|
||||||
|
context.state_group = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.auth.check(event, auth_events=auth_events)
|
self.auth.check(event, auth_events=auth_events)
|
||||||
except AuthError:
|
except AuthError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue