File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,11 @@ fun TimelineView(
177
177
onClearFocusRequestState = ::clearFocusRequestState
178
178
)
179
179
180
- val isCloseToStartOfLoadedTimeline by remember { derivedStateOf {
180
+ val isCloseToStartOfLoadedTimeline by remember {
181
+ derivedStateOf {
181
182
lazyListState.firstVisibleItemIndex + lazyListState.layoutInfo.visibleItemsInfo.size >= lazyListState.layoutInfo.totalItemsCount - 10
182
- } }
183
+ }
184
+ }
183
185
LaunchedEffect (isCloseToStartOfLoadedTimeline) {
184
186
// Only back paginate when we're close to the start of the loaded timeline items and the user is actively scrolling
185
187
if (lazyListState.isScrollInProgress && isCloseToStartOfLoadedTimeline) {
You can’t perform that action at this time.
0 commit comments