mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 11:02:13 -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
|
@ -332,6 +332,11 @@ class BulkPushRuleEvaluator:
|
|||
# Push rules say we should notify the user of this event
|
||||
actions_by_user[uid] = actions
|
||||
|
||||
# If there aren't any actions then we can skip the rest of the
|
||||
# processing.
|
||||
if not actions_by_user:
|
||||
return
|
||||
|
||||
# This is a check for the case where user joins a room without being
|
||||
# allowed to see history, and then the server receives a delayed event
|
||||
# from before the user joined, which they should not be pushed for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue