-
- Downloads
Inline `_check_event_auth` for outliers (#10926)
* Inline `_check_event_auth` for outliers When we are persisting an outlier, most of `_check_event_auth` is redundant: * `_update_auth_events_and_context_for_auth` does nothing, because the `input_auth_events` are (now) exactly the event's auth_events, which means that `missing_auth` is empty. * we don't care about soft-fail, kicking guest users or `send_on_behalf_of` for outliers ... so the only thing that matters is the auth itself, so let's just do that. * `_auth_and_persist_fetched_events_inner`: de-async `prep` `prep` no longer calls any `async` methods, so let's make it synchronous. * Simplify `_check_event_auth` We no longer need to support outliers here, which makes things rather simpler. * changelog * lint
Showing
- changelog.d/10896.misc 1 addition, 1 deletionchangelog.d/10896.misc
- changelog.d/10926.misc 1 addition, 0 deletionschangelog.d/10926.misc
- synapse/handlers/federation_event.py 36 additions, 57 deletionssynapse/handlers/federation_event.py
- tests/test_federation.py 0 additions, 1 deletiontests/test_federation.py
changelog.d/10926.misc
0 → 100644
Please register or sign in to comment