Update gomatrixserverlib

This commit is contained in:
Neil Alexander 2020-04-27 15:47:36 +01:00
parent 3ab8ebf6b8
commit 87f05721b0
4 changed files with 11 additions and 5 deletions

View file

@ -210,7 +210,10 @@ func (r *messagesReq) retrieveEvents() (
}
// Sort the events to ensure we send them in the right order.
events = gomatrixserverlib.HeaderedReverseTopologicalOrdering(events)
events = gomatrixserverlib.HeaderedReverseTopologicalOrdering(
events,
gomatrixserverlib.TopologicalOrderByPrevEvents,
)
if r.backwardOrdering {
// This reverses the array from old->new to new->old
sort.SliceStable(events, func(i, j int) bool {