summary refs log tree commit diff
path: root/changelog.d/10884.misc
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-09-23 17:34:33 +0100
committerGitHub <noreply@github.com>2021-09-23 17:34:33 +0100
commita7304adc7d383caad1b3f83fa707b1090323ecca (patch)
tree2a95f6fb0cdfcd448b77cb20bed1461f6eff8d06 /changelog.d/10884.misc
parentUse direct references for configuration variables (part 4). (#10893) (diff)
downloadsynapse-a7304adc7d383caad1b3f83fa707b1090323ecca.tar.xz
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
Diffstat (limited to 'changelog.d/10884.misc')
-rw-r--r--changelog.d/10884.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/10884.misc b/changelog.d/10884.misc
new file mode 100644
index 0000000000..9a765435db
--- /dev/null
+++ b/changelog.d/10884.misc
@@ -0,0 +1 @@
+Clean up some of the federation event authentication code for clarity.