diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py index dd4ca74ba6abb93a0f1e0c1134b2ee01f7d6be6f..9c7dcdba963265010a5796d93920f7fdaae71c2e 100644 --- a/synapse/federation/federation_server.py +++ b/synapse/federation/federation_server.py @@ -419,6 +419,8 @@ class FederationServer(FederationBase): min_depth=min_depth, ) + # We want to sort these by depth so we process them and + # tell clients about them in order. missing_events.sort(key=lambda x: x.depth) for e in missing_events: