From c9794d8280fa678f52177284bc871938dac5d980 Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Fri, 8 Jul 2022 10:22:59 +0200 Subject: [PATCH] Small fixes in comments --- .../detail/timeline/helper/TimelineEventVisibilityHelper.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineEventVisibilityHelper.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineEventVisibilityHelper.kt index 3ab7d6a763..8af708fca1 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineEventVisibilityHelper.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineEventVisibilityHelper.kt @@ -37,7 +37,7 @@ class TimelineEventVisibilityHelper @Inject constructor( 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 newEvent the more recent event between the 2 events to compare */ @@ -148,7 +148,7 @@ class TimelineEventVisibilityHelper @Inject constructor( ): List { val prevSub = timelineEvents .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 } return prevSub .reversed()