Skip to content

Commit

Permalink
Fix home screen going empty when app is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Apr 21, 2024
1 parent 876538f commit cc8787a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asSharedFlow
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.distinctUntilChangedBy
import kotlinx.coroutines.flow.flatMapLatest
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.map
Expand Down Expand Up @@ -272,7 +271,7 @@ class HomePresenter(
)
.map { Triple(it, postsType, activeSource) }
}
.distinctUntilChangedBy { (featuredPosts, _, _) -> featuredPosts }
.distinctUntilChanged()
.onEach { (featuredPosts, postsType, activeSource) ->
val featuredPostIds = featuredPosts.map { it.id }

Expand Down

0 comments on commit cc8787a

Please sign in to comment.