MatrixSynapse/synapse
Richard van der Hoff a7304adc7d
Factor out `_get_remote_auth_chain_for_event` from `_update_auth_events_and_context_for_auth` (#10884)
* Reload auth events from db after fetching and persisting

In `_update_auth_events_and_context_for_auth`, when we fetch the remote auth
tree and persist the returned events: load the missing events from the database
rather than using the copies we got from the remote server.

This is mostly in preparation for additional refactors, but does have an
advantage in that if we later get around to checking the rejected status, we'll
be able to make use of it.

* Factor out `_get_remote_auth_chain_for_event` from `_update_auth_events_and_context_for_auth`

* changelog
2021-09-23 17:34:33 +01:00
..
_scripts Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
api Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
app Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
appservice Use inline type hints in various other places (in `synapse/`) (#10380) 2021-07-15 11:02:43 +01:00
config Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
crypto Use direct references for some configuration variables (part 2) (#10812) 2021-09-15 08:34:52 -04:00
events Factor out a separate `EventContext.for_outlier` (#10883) 2021-09-22 17:58:57 +01:00
federation Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
groups Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
handlers Factor out `_get_remote_auth_chain_for_event` from `_update_auth_events_and_context_for_auth` (#10884) 2021-09-23 17:34:33 +01:00
http Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
logging Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -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 Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
replication Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -04:00
res Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
rest Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
server_notices Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -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 Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
streams Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
util Opt out of cache expiry for `get_users_who_share_room_with_user` (#10826) 2021-09-22 14:21:58 +01:00
__init__.py 1.43.0 2021-09-21 11:49:15 +01:00
event_auth.py Rename MSC2716 things from `chunk` to `batch` to match `/batch_send` endpoint (#10838) 2021-09-21 15:06:28 -05: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