ios: fix showing first unread (#5703)

This commit is contained in:
Stanislav Dmitrenko
2025-03-03 20:53:23 +00:00
committed by GitHub
parent 1ddf7a62ad
commit 2788a1dbb3
@@ -476,7 +476,7 @@ class EndlessScrollView<ScrollItem>: UIScrollView, UIScrollViewDelegate, UIGestu
if index >= listState.items.count || listState.isScrolling || listState.isAnimatedScrolling {
return
}
if bounds.height == 0 {
if bounds.height == 0 || contentSize.height == 0 {
scrollToItemIndexDelayed = index
return
}