MatrixSynapse/synapse/handlers
Richard van der Hoff 1bebc0b78c
Clean up federation event auth code (#10539)
* drop old-room hack

pretty sure we don't need this any more.

* Remove incorrect comment about modifying `context`

It doesn't look like the supplied context is ever modified.

* Stop `_auth_and_persist_event` modifying its parameters

This is only called in three places. Two of them don't pass `auth_events`, and
the third doesn't use the dict after passing it in, so this should be non-functional.

* Stop `_check_event_auth` modifying its parameters

`_check_event_auth` is only called in three places. `on_send_membership_event`
doesn't pass an `auth_events`, and `prep` and `_auth_and_persist_event` do not
use the map after passing it in.

* Stop `_update_auth_events_and_context_for_auth` modifying its parameters

Return the updated auth event dict, rather than modifying the parameter.

This is only called from `_check_event_auth`.

* Improve documentation on `_auth_and_persist_event`

Rename `auth_events` parameter to better reflect what it contains.

* Improve documentation on `_NewEventInfo`

* Improve documentation on `_check_event_auth`

rename `auth_events` parameter to better describe what it contains

* changelog
2021-08-06 13:54:23 +01:00
..
ui_auth
__init__.py
_base.py
account_data.py
account_validity.py
admin.py
appservice.py Only return an appservice protocol if it has a service providing it. (#10532) 2021-08-05 08:22:14 -04:00
auth.py
cas.py
deactivate_account.py
device.py
devicemessage.py
directory.py
e2e_keys.py
e2e_room_keys.py
event_auth.py
events.py
federation.py Clean up federation event auth code (#10539) 2021-08-06 13:54:23 +01:00
groups_local.py
identity.py Send unstable-prefixed room_type in store-invite IS API requests (#10435) 2021-08-04 13:39:57 -04:00
initial_sync.py Support for MSC2285 (hidden read receipts) (#10413) 2021-07-28 10:05:11 +02:00
message.py
oidc.py
pagination.py
password_policy.py
presence.py
profile.py
read_marker.py
receipts.py Include room ID in ignored EDU log messages (#10507) 2021-08-03 13:35:49 +00:00
register.py
room.py Make historical events discoverable from backfill for servers without any scrollback history (MSC2716) (#10245) 2021-07-28 10:46:37 -05:00
room_list.py
room_member.py Send unstable-prefixed room_type in store-invite IS API requests (#10435) 2021-08-04 13:39:57 -04:00
room_member_worker.py
saml.py
search.py
send_email.py Add a setting to disable TLS for sending email (#10546) 2021-08-06 10:13:34 +00:00
set_password.py
space_summary.py Update the API response for spaces summary over federation. (#10530) 2021-08-06 07:40:29 -04:00
sso.py
state_deltas.py
stats.py
sync.py Make sync response cache time configurable. (#10513) 2021-08-03 14:45:04 +01:00
typing.py Include room ID in ignored EDU log messages (#10507) 2021-08-03 13:35:49 +00:00
user_directory.py