mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-14 07:12:53 +00:00
Topologically sort with SendEventWithState
, so that earlier events should satisfy auth for later ones
This commit is contained in:
parent
4c07374c42
commit
b0cd706012
1 changed files with 2 additions and 0 deletions
|
@ -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