Merge pull request #3655 from SpiritCroc/unread_collapsed

Fix unread messages marker being hidden in collapsed membership item
This commit is contained in:
Benoit Marty 2021-07-12 13:10:13 +02:00 committed by GitHub
commit fbcb2ea8ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

1
changelog.d/3655.bugfix Normal file
View file

@ -0,0 +1 @@
Fix unread messages marker being hidden in collapsed membership item

View file

@ -73,7 +73,8 @@ class TimelineControllerInterceptorHelper(private val positionOfReadMarker: KMut
}
epoxyModel.getEventIds().forEach { eventId ->
adapterPositionMapping[eventId] = index
appendReadMarker = epoxyModel.canAppendReadMarker() && eventId == firstUnreadEventId && atLeastOneVisibleItemsBeforeReadMarker
appendReadMarker = appendReadMarker
|| (epoxyModel.canAppendReadMarker() && eventId == firstUnreadEventId && atLeastOneVisibleItemsBeforeReadMarker)
}
}
if (epoxyModel is DaySeparatorItem) {