1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/controllers/persist_events.py b/synapse/storage/controllers/persist_events.py
index 69d5999c0a..84699a2ee1 100644
--- a/synapse/storage/controllers/persist_events.py
+++ b/synapse/storage/controllers/persist_events.py
@@ -773,9 +773,9 @@ class EventsPersistenceStorageController:
)
# Remove any events which are prev_events of any existing events.
- existing_prevs: Collection[
- str
- ] = await self.persist_events_store._get_events_which_are_prevs(result)
+ existing_prevs: Collection[str] = (
+ await self.persist_events_store._get_events_which_are_prevs(result)
+ )
result.difference_update(existing_prevs)
# Finally handle the case where the new events have soft-failed prev
|