We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9abab1b commit 847cf07Copy full SHA for 847cf07
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelineView.kt
@@ -177,9 +177,11 @@ fun TimelineView(
177
onClearFocusRequestState = ::clearFocusRequestState
178
)
179
180
- val isCloseToStartOfLoadedTimeline by remember { derivedStateOf {
+ val isCloseToStartOfLoadedTimeline by remember {
181
+ derivedStateOf {
182
lazyListState.firstVisibleItemIndex + lazyListState.layoutInfo.visibleItemsInfo.size >= lazyListState.layoutInfo.totalItemsCount - 10
- } }
183
+ }
184
185
LaunchedEffect(isCloseToStartOfLoadedTimeline) {
186
// Only back paginate when we're close to the start of the loaded timeline items and the user is actively scrolling
187
if (lazyListState.isScrollInProgress && isCloseToStartOfLoadedTimeline) {
0 commit comments