From 6ecf8219dfd615cf2c77e2d97e8b262da9c5f9ef Mon Sep 17 00:00:00 2001 From: Kegan Dougal <7190048+kegsay@users.noreply.github.com> Date: Tue, 10 Mar 2026 15:03:30 +0000 Subject: [PATCH] Update synapse/storage/controllers/persist_events.py Co-authored-by: Eric Eastwood --- synapse/storage/controllers/persist_events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/storage/controllers/persist_events.py b/synapse/storage/controllers/persist_events.py index 2a75331e2e..d040fbf671 100644 --- a/synapse/storage/controllers/persist_events.py +++ b/synapse/storage/controllers/persist_events.py @@ -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