mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Manually publish room list range updates when the content isn't scrollable
This commit is contained in:
@@ -146,6 +146,8 @@ struct HomeScreenContent: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
guard scrollView.contentSize.height > scrollView.bounds.height else {
|
guard scrollView.contentSize.height > scrollView.bounds.height else {
|
||||||
|
// This list never scrolls, publish the range manually.
|
||||||
|
context.send(viewAction: .updateVisibleItemRange(0..<context.viewState.visibleRooms.count))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user