mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Merge pull request #3655 from SpiritCroc/unread_collapsed
Fix unread messages marker being hidden in collapsed membership item
This commit is contained in:
commit
fbcb2ea8ae
2 changed files with 3 additions and 1 deletions
1
changelog.d/3655.bugfix
Normal file
1
changelog.d/3655.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix unread messages marker being hidden in collapsed membership item
|
|
@ -73,7 +73,8 @@ class TimelineControllerInterceptorHelper(private val positionOfReadMarker: KMut
|
||||||
}
|
}
|
||||||
epoxyModel.getEventIds().forEach { eventId ->
|
epoxyModel.getEventIds().forEach { eventId ->
|
||||||
adapterPositionMapping[eventId] = index
|
adapterPositionMapping[eventId] = index
|
||||||
appendReadMarker = epoxyModel.canAppendReadMarker() && eventId == firstUnreadEventId && atLeastOneVisibleItemsBeforeReadMarker
|
appendReadMarker = appendReadMarker
|
||||||
|
|| (epoxyModel.canAppendReadMarker() && eventId == firstUnreadEventId && atLeastOneVisibleItemsBeforeReadMarker)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (epoxyModel is DaySeparatorItem) {
|
if (epoxyModel is DaySeparatorItem) {
|
||||||
|
|
Loading…
Reference in a new issue