Explain filterEvents

This commit is contained in:
Anant Prakash 2018-06-22 21:19:01 +05:30
parent 750774b328
commit c80d102074
No known key found for this signature in database
GPG key ID: C5D399F626523045

View file

@ -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 {