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/controllers | |
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/controllers')
-rw-r--r-- | synapse/storage/controllers/persist_events.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/synapse/storage/controllers/persist_events.py b/synapse/storage/controllers/persist_events.py index 709cb792ed..06e71a8053 100644 --- a/synapse/storage/controllers/persist_events.py +++ b/synapse/storage/controllers/persist_events.py @@ -423,16 +423,18 @@ class EventsPersistenceStorageController: for d in ret_vals: replaced_events.update(d) - events = [] + persisted_events = [] for event, _ in events_and_contexts: existing_event_id = replaced_events.get(event.event_id) if existing_event_id: - events.append(await self.main_store.get_event(existing_event_id)) + persisted_events.append( + await self.main_store.get_event(existing_event_id) + ) else: - events.append(event) + persisted_events.append(event) return ( - events, + persisted_events, self.main_store.get_room_max_token(), ) |