Small fixes in comments

This commit is contained in:
Maxime NATUREL 2022-07-08 10:22:59 +02:00
parent b412b9f4e9
commit c9794d8280
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class TimelineEventVisibilityHelper @Inject constructor(
private interface PredicateToStopSearch { private interface PredicateToStopSearch {
/** /**
* Indicate whether a search on events should stop by comparing to given successive events. * Indicate whether a search on events should stop by comparing 2 given successive events.
* @param oldEvent the oldest event between the 2 events to compare * @param oldEvent the oldest event between the 2 events to compare
* @param newEvent the more recent event between the 2 events to compare * @param newEvent the more recent event between the 2 events to compare
*/ */
@ -148,7 +148,7 @@ class TimelineEventVisibilityHelper @Inject constructor(
): List<TimelineEvent> { ): List<TimelineEvent> {
val prevSub = timelineEvents val prevSub = timelineEvents
.subList(0, index + 1) .subList(0, index + 1)
// Ensure to not take the REDACTION event into account // Ensure to not take the REDACTION events into account
.filter { it.root.getClearType() != EventType.REDACTION } .filter { it.root.getClearType() != EventType.REDACTION }
return prevSub return prevSub
.reversed() .reversed()