0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-06-18 12:28:28 +02: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()] {