Update synapse/storage/controllers/persist_events.py

Co-authored-by: Eric Eastwood <erice@element.io>
This commit is contained in:
Kegan Dougal
2026-03-10 15:03:30 +00:00
committed by GitHub
parent bc91229685
commit 6ecf8219df

View File

@@ -1016,8 +1016,8 @@ class EventsPersistenceStorageController:
e_id for event in new_state_events for e_id in event.prev_state_events
)
# Finally handle the case where the new events have rejected/soft-failed prev state events.
# If they do we need to remove them and their prev state events,
# Finally handle the case where the new events have rejected/soft-failed `prev_state_events`.
# If they do we need to remove them and their `prev_state_events`,
# otherwise we end up with dangling extremities.
# Specifically, this handles the case where (F=fwd extrem, SF=soft-failed, N=new event)
# F <-- SF <-- SF <-- N