mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-18 17:10:43 +03:00
Use the returned backfill events to fill in any missing auth events before reaching out a second time to fetch them
This commit is contained in:
parent
bb9c7f2dd9
commit
05c1c838f2
1 changed files with 5 additions and 0 deletions
|
@ -346,6 +346,11 @@ class FederationHandler(BaseHandler):
|
|||
a_id for event in all_events for a_id, _ in event.auth_events
|
||||
)
|
||||
|
||||
for e_id in required_auth:
|
||||
if e_id not in auth_events and e_id in event_ids:
|
||||
auth_events[e_id] = event_map[e_id]
|
||||
# TODO(paul): we should also inspect our local database here
|
||||
|
||||
missing_auth = required_auth - set(auth_events)
|
||||
results = yield defer.gatherResults(
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue