diff options
author | Kateřina Churanová <katerina.churanova@gmail.com> | 2022-09-28 14:31:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 12:31:53 +0000 |
commit | 6caa3030835f879724c003a5b0dc66a6285451d8 (patch) | |
tree | 9e33ccb6e4e086c19e211bd8dc7ab21a52f41496 /synapse/storage/databases | |
parent | Add instruction for running unit tests in parallel (#13928) (diff) | |
download | synapse-6caa3030835f879724c003a5b0dc66a6285451d8.tar.xz |
fix: Push notifications for invite over federation (#13719)
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r-- | synapse/storage/databases/main/events.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py index b59eb7478b..bb489b8189 100644 --- a/synapse/storage/databases/main/events.py +++ b/synapse/storage/databases/main/events.py @@ -2134,13 +2134,13 @@ class PersistEventsStore: appear in events_and_context. """ - # Only non outlier events will have push actions associated with them, + # Only notifiable events will have push actions associated with them, # so let's filter them out. (This makes joining large rooms faster, as # these queries took seconds to process all the state events). - non_outlier_events = [ + notifiable_events = [ event for event, _ in events_and_contexts - if not event.internal_metadata.is_outlier() + if event.internal_metadata.is_notifiable() ] sql = """ @@ -2153,7 +2153,7 @@ class PersistEventsStore: WHERE event_id = ? """ - if non_outlier_events: + if notifiable_events: txn.execute_batch( sql, ( @@ -2163,7 +2163,7 @@ class PersistEventsStore: event.depth, event.event_id, ) - for event in non_outlier_events + for event in notifiable_events ), ) |