mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 13:52:46 +00:00
Update gomatrixserverlib
This commit is contained in:
parent
3ab8ebf6b8
commit
87f05721b0
4 changed files with 11 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue