mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Fix typo
This commit is contained in:
parent
cc89a8fc77
commit
a083047888
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ class TimelineEventController @Inject constructor(private val dateFormatter: Vec
|
||||||
// Also invalidate the first previous displayable event if
|
// Also invalidate the first previous displayable event if
|
||||||
// it's sent by the same user so we are sure we have up to date information.
|
// it's sent by the same user so we are sure we have up to date information.
|
||||||
val invalidatedSenderId: String? = currentSnapshot.getOrNull(position)?.senderInfo?.userId
|
val invalidatedSenderId: String? = currentSnapshot.getOrNull(position)?.senderInfo?.userId
|
||||||
// In some cases onChanged will be called before onRemoved and onInserted so position will be smaller than currentSnapshot.size.
|
// In some cases onChanged will be called before onRemoved and onInserted so position will be bigger than currentSnapshot.size.
|
||||||
val prevList = currentSnapshot.subList(0, min(position, currentSnapshot.size))
|
val prevList = currentSnapshot.subList(0, min(position, currentSnapshot.size))
|
||||||
val prevDisplayableEventIndex = prevList.indexOfLast {
|
val prevDisplayableEventIndex = prevList.indexOfLast {
|
||||||
timelineEventVisibilityHelper.shouldShowEvent(it, partialState.highlightedEventId)
|
timelineEventVisibilityHelper.shouldShowEvent(it, partialState.highlightedEventId)
|
||||||
|
|
Loading…
Reference in a new issue