diff --git a/roomserver/api/wrapper.go b/roomserver/api/wrapper.go index 012094c62..e70316770 100644 --- a/roomserver/api/wrapper.go +++ b/roomserver/api/wrapper.go @@ -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()] {