Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e9b69dc authored by Jeff DeCew's avatar Jeff DeCew Committed by Android (Google) Code Review
Browse files

Merge "Do not collect `notifsPresent` flow unless onboarding is needed." into main

parents f573dec6 9959a76d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -65,7 +65,9 @@ constructor(
        userInteractor.selectedUser.mapLatestConflated { userId -> isAvailableAndDisabled(userId) }

    val onboardingNeeded: Flow<Boolean> =
        allOf(onboardingUnseen, summarizationAvailableAndDisabled, notifsPresent)
        allOf(onboardingUnseen, summarizationAvailableAndDisabled)
            .distinctUntilChanged()
            .flatMapLatestConflated { if (it) notifsPresent else flowOf(false) }
            .distinctUntilChanged()
            .flowOn(bgDispatcher)