mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:55:04 -04:00
Skip filtering during push if there are no push actions (#13992)
This commit is contained in:
parent
285d72556b
commit
535f8c8f7d
4 changed files with 12 additions and 2 deletions
|
@ -162,6 +162,10 @@ async def filter_event_for_clients_with_state(
|
|||
if event.internal_metadata.is_soft_failed():
|
||||
return []
|
||||
|
||||
# Fast path if we don't have any user IDs to check.
|
||||
if not user_ids:
|
||||
return ()
|
||||
|
||||
# Make a set for all user IDs that haven't been filtered out by a check.
|
||||
allowed_user_ids = set(user_ids)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue