1
0
mirror of https://github.com/matrix-org/dendrite.git synced 2024-06-14 04:56:41 +00:00

Topologically sort with SendEventWithState, so that earlier events should satisfy auth for later ones

This commit is contained in:
Neil Alexander 2022-02-25 11:05:20 +00:00
parent 4c07374c42
commit b0cd706012
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -56,6 +56,8 @@ func SendEventWithState(
return err
}
outliers = gomatrixserverlib.ReverseTopologicalOrdering(outliers, gomatrixserverlib.TopologicalOrderByAuthEvents)
var ires []InputRoomEvent
for _, outlier := range outliers {
if haveEventIDs[outlier.EventID()] {