forked-synapse/synapse
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
..
_scripts Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
api Make historical events discoverable from backfill for servers without any scrollback history (MSC2716) (#10245) 2021-07-28 10:46:37 -05:00
app Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
appservice Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
config Add a setting to disable TLS for sending email (#10546) 2021-08-06 10:13:34 +00:00
crypto Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
events Make historical events discoverable from backfill for servers without any scrollback history (MSC2716) (#10245) 2021-07-28 10:46:37 -05:00
federation Refactoring before implementing the updated spaces summary. (#10527) 2021-08-05 12:39:17 +00:00
groups Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
handlers Clean up federation event auth code (#10539) 2021-08-06 13:54:23 +01:00
http Fix up type hints for Twisted 21.7 (#10490) 2021-07-28 12:04:11 +00:00
logging Fix PeriodicallyFlushingMemoryHandler inhibiting application shutdown (#10517) 2021-08-03 14:28:30 +01:00
metrics [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
module_api Add get_userinfo_by_id method to ModuleApi (#9581) 2021-08-04 10:40:25 +00:00
push Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
replication Fix up type hints for Twisted 21.7 (#10490) 2021-07-28 12:04:11 +00:00
res/templates Port "Allow users to click account renewal links multiple times without hitting an 'Invalid Token' page #74" from synapse-dinsic (#9832) 2021-04-19 19:16:34 +01:00
rest Mark all MSC2716 events as historical (#10537) 2021-08-05 20:35:53 -05:00
server_notices Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Add type hints to state handler. (#10482) 2021-07-26 12:49:53 -04:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Add support for MSC2716 marker events (#10498) 2021-08-04 12:07:57 -05:00
streams Add a return type to parse_string. (#10438) 2021-07-21 09:47:56 -04:00
util Remove shebang line from module files (#10415) 2021-07-29 21:34:14 +01:00
__init__.py 1.40.0rc2 2021-08-04 17:09:27 +01:00
event_auth.py Fix explicit assignment of PL 0 from being misinterpreted in rare circumstances (#10499) 2021-07-30 12:34:21 +01:00
notifier.py Generics for ObservableDeferred (#10491) 2021-07-28 19:55:50 +00:00
python_dependencies.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
server.py Add a setting to disable TLS for sending email (#10546) 2021-08-06 10:13:34 +00:00
types.py Add get_userinfo_by_id method to ModuleApi (#9581) 2021-08-04 10:40:25 +00:00
visibility.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00