diff --git a/src/github.com/matrix-org/dendrite/federationapi/routing/missingevents.go b/src/github.com/matrix-org/dendrite/federationapi/routing/missingevents.go index b62e9919e..2e0f51e73 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/routing/missingevents.go +++ b/src/github.com/matrix-org/dendrite/federationapi/routing/missingevents.go @@ -66,6 +66,7 @@ func GetMissingEvents( } } +// filterEvents returns only those events with matching roomID and having depth greater than minDepth func filterEvents( events []gomatrixserverlib.Event, minDepth int64, roomID string, ) []gomatrixserverlib.Event {