summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-03-29 03:18:52 -0500
committerGitHub <noreply@github.com>2022-03-29 09:18:52 +0100
commit6f2943714bb4f13456398b6a02606f0338f0e020 (patch)
treed0822b8fd60d48685499f1305ab07b05dae84cad /synapse/handlers/message.py
parentExclude outliers in `on_backfill_request` (#12314) (diff)
downloadsynapse-6f2943714bb4f13456398b6a02606f0338f0e020.tar.xz
Remove unused `auth_event_ids` argument plumbing (#12304)
Follow-up to https://github.com/matrix-org/synapse/pull/12083

Since we are now using the new `state_event_ids` parameter to do all of the heavy lifting.
We can remove any spots where we plumbed `auth_event_ids` just for MSC2716 things in
https://github.com/matrix-org/synapse/pull/9247/files.

Removing `auth_event_ids` from following functions:

 - `create_and_send_nonmember_event`
 - `_local_membership_update`
 - `update_membership`
 - `update_membership_locked`
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py

index 1c4fb4360a..766f597a55 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py
@@ -782,7 +782,6 @@ class EventCreationHandler: event_dict: dict, allow_no_prev_events: bool = False, prev_event_ids: Optional[List[str]] = None, - auth_event_ids: Optional[List[str]] = None, state_event_ids: Optional[List[str]] = None, ratelimit: bool = True, txn_id: Optional[str] = None, @@ -807,12 +806,6 @@ class EventCreationHandler: The event IDs to use as the prev events. Should normally be left as None to automatically request them from the database. - auth_event_ids: - The event ids to use as the auth_events for the new event. - Should normally be left as None, which will cause them to be calculated - based on the room state at the prev_events. - - If non-None, prev_event_ids must also be provided. state_event_ids: The full state at a given event. This is used particularly by the MSC2716 /batch_send endpoint. One use case is with insertion events which float at @@ -878,7 +871,6 @@ class EventCreationHandler: txn_id=txn_id, allow_no_prev_events=allow_no_prev_events, prev_event_ids=prev_event_ids, - auth_event_ids=auth_event_ids, state_event_ids=state_event_ids, outlier=outlier, historical=historical,