mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 09:12:13 -04:00
Refactor filter_events_for_server
(#15240)
* Tweak docstring and type hint * Flip logic and provide better name * Separate decision from action * Track a set of strings, not EventBases * Require explicit boolean options from callers * Add explicit option for partial state rooms * Changelog * Rename param
This commit is contained in:
parent
e157c63f68
commit
4bb26c95a9
5 changed files with 109 additions and 30 deletions
|
@ -547,6 +547,8 @@ class PerDestinationQueue:
|
|||
self._server_name,
|
||||
new_pdus,
|
||||
redact=False,
|
||||
filter_out_erased_senders=True,
|
||||
filter_out_remote_partial_state_events=True,
|
||||
)
|
||||
|
||||
# If we've filtered out all the extremities, fall back to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue