diff --git a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/HomePresenter.kt b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/HomePresenter.kt index 734ede37a..37d8a25aa 100644 --- a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/HomePresenter.kt +++ b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/home/HomePresenter.kt @@ -272,7 +272,11 @@ class HomePresenter( ) .map { featuredPosts -> Triple(activeSource, postsType, featuredPosts) } } - .distinctUntilChanged() + .distinctUntilChanged { old, new -> + old.third.map { it.id } == new.third.map { it.id } || + old.first == new.first || + old.second == new.second + } .onEach { (activeSource, postsType, featuredPosts) -> val featuredPostIds = featuredPosts.map { it.id }