Skip to content

Commit cbc514a

Browse files
oblakr-protonMargeBot
authored andcommitted
Enable route navigation
MAILANDR-2631: use correct FF
1 parent eb9515e commit cbc514a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • mail-upselling/presentation/src/main/kotlin/ch/protonmail/android/mailupselling/presentation/usecase

mail-upselling/presentation/src/main/kotlin/ch/protonmail/android/mailupselling/presentation/usecase/ObserveNPSEligibility.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package ch.protonmail.android.mailupselling.presentation.usecase
2121
import ch.protonmail.android.mailcommon.domain.MailFeatureId
2222
import ch.protonmail.android.mailcommon.domain.usecase.ObserveMailFeature
2323
import ch.protonmail.android.mailcommon.domain.usecase.ObservePrimaryUser
24-
import ch.protonmail.android.mailupselling.domain.annotations.DriveSpotlightEnabled
24+
import ch.protonmail.android.mailupselling.domain.annotations.NPSEnabled
2525
import kotlinx.coroutines.flow.Flow
2626
import kotlinx.coroutines.flow.distinctUntilChanged
2727
import kotlinx.coroutines.flow.flatMapLatest
@@ -32,13 +32,13 @@ import javax.inject.Inject
3232
class ObserveNPSEligibility @Inject constructor(
3333
private val observePrimaryUser: ObservePrimaryUser,
3434
private val observeMailFeature: ObserveMailFeature,
35-
@DriveSpotlightEnabled private val driveSpotlightEnabled: Boolean
35+
@NPSEnabled private val npsEnabled: Boolean
3636
) {
3737
operator fun invoke(): Flow<Boolean> = observePrimaryUser()
3838
.distinctUntilChanged()
3939
.flatMapLatest { user ->
4040
if (user == null) return@flatMapLatest flowOf(false)
41-
if (!driveSpotlightEnabled) return@flatMapLatest flowOf(false)
41+
if (!npsEnabled) return@flatMapLatest flowOf(false)
4242
observeMailFeature(user.userId, MailFeatureId.NPSFeedback).map { npsFeatureFlag ->
4343
npsFeatureFlag.value
4444
}

0 commit comments

Comments
 (0)