exclude items.count(), which is not a valid index for the list.
This commit is contained in:
parent
08d78740ab
commit
0756a2d3e4
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ class TimelinePresenter @AssistedInject constructor(
|
|||
}
|
||||
|
||||
private fun getLastEventIdBeforeOrAt(index: Int, items: ImmutableList<TimelineItem>): EventId? {
|
||||
for (i in index..items.count()) {
|
||||
for (i in index until items.count()) {
|
||||
val item = items[i]
|
||||
if (item is TimelineItem.Event) {
|
||||
return item.eventId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue