From c80d102074b888d6c7d094c4b0019f35d4063da5 Mon Sep 17 00:00:00 2001 From: Anant Prakash Date: Fri, 22 Jun 2018 21:19:01 +0530 Subject: [PATCH] Explain filterEvents --- .../matrix-org/dendrite/federationapi/routing/missingevents.go | 1 + 1 file changed, 1 insertion(+) 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 {