Fix loading feed when a channel tab is empty

This commit is contained in:
Stypox 2023-04-25 19:01:02 +02:00
parent 6b3a178f2a
commit 1519527356
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 3 additions and 1 deletions

View File

@ -165,7 +165,9 @@ class FeedLoadManager(private val context: Context) {
}
.flatMap { (channelTabInfo, linkHandler) ->
errors.addAll(channelTabInfo.errors)
if (channelTabInfo.relatedItems.isEmpty()) {
if (channelTabInfo.relatedItems.isEmpty() &&
channelTabInfo.nextPage != null
) {
val infoItemsPage = getMoreChannelTabItems(
subscriptionEntity.serviceId,
linkHandler, channelTabInfo.nextPage