synapse-product/synapse
Richard van der Hoff 2622b28c5c
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
2021-09-28 15:25:07 +01:00
..
_scripts Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
api Fix AuthBlocking check when requester is appservice (#10881) 2021-09-24 10:41:18 +01:00
app Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
appservice Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
config Clean-up type hints in server config (#10915) 2021-09-28 09:24:40 -04:00
crypto Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
events Add a spamchecker callback to allow or deny room creation based on invites (#10898) 2021-09-24 16:38:23 +02:00
federation Factor out common code for persisting fetched auth events (#10896) 2021-09-24 11:56:33 +01:00
groups Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
handlers Inline _check_event_auth for outliers (#10926) 2021-09-28 15:25:07 +01:00
http Encode JSON responses on a thread in C, mk2 (#10905) 2021-09-28 09:37:58 +00:00
logging Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
metrics [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
module_api Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
push Encode JSON responses on a thread in C, mk2 (#10905) 2021-09-28 09:37:58 +00:00
replication Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
res Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
rest Avoid storing URL cache files in storage providers (#10911) 2021-09-27 12:55:27 +01:00
server_notices Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Factor out a separate EventContext.for_outlier (#10883) 2021-09-22 17:58:57 +01:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Document changes to schema version 61 - 64 (#10917) 2021-09-24 17:09:12 -05:00
streams Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
util Encode JSON responses on a thread in C, mk2 (#10905) 2021-09-28 09:37:58 +00:00
__init__.py 1.43.0 2021-09-21 11:49:15 +01:00
event_auth.py Only do restricted join rules signature checks for room versions 8/9. (#10927) 2021-09-28 08:44:19 -04:00
notifier.py Add type hints for event streams. (#10856) 2021-09-21 13:34:26 -04:00
python_dependencies.py Validate new m.room.power_levels events (#10232) 2021-08-26 17:07:58 +01:00
server.py Use direct references for some configuration variables (part 2) (#10812) 2021-09-15 08:34:52 -04:00
types.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
visibility.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00