fix(ui): load new items from paging data

This commit is contained in:
junkfood 2024-03-06 22:15:43 +08:00
parent 37835a4964
commit f06d8ce05e
No known key found for this signature in database
GPG Key ID: 2EA5B648DB112A34
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ fun LazyListScope.ArticleList(
onSwipeEndToStart: ((ArticleWithFeed) -> Unit)? = null,
) {
for (index in 0 until pagingItems.itemCount) {
when (val item = pagingItems.peek(index)) {
when (val item = pagingItems[index]) {
is ArticleFlowItem.Article -> {
item(key = item.articleWithFeed.article.id) {
// if (item.articleWithFeed.article.isUnread) {