private inline suspend fun <T, BT : TimelineItem> findFinalBlock(relevantTimeline: List<BT>, searchLambda: suspend (BT) -> T): List<BT>

Find the last consecutive list of blocks of the same searchLambda

Return

Consecutive same type timeline items

Parameters

relevantTimeline

List of timeline items filtered for issue and sorted by date

searchLambda

Lambda returning a value that is equal if the items should be considered equal