mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 14:21:55 -06:00
Topologically sort with SendEventWithState
, so that earlier events should satisfy auth for later ones
This commit is contained in:
parent
4c07374c42
commit
b0cd706012
|
@ -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()] {
|
||||
|
|
Loading…
Reference in a new issue