Skip to content

Commit 5f94df7

Browse files
committed
fix(flipcash): properly set LoggedIn for the AuthState during create account flow; readd welcome bonus bills
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent f467d4a commit 5f94df7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/flipcash/shared/authentication/src/main/kotlin/com/flipcash/app/auth/AuthManager.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class AuthManager @Inject constructor(
102102
suspend fun onAccountPurchased(): Result<Unit> {
103103
return credentialManager.onAccountPurchased()
104104
.onSuccess {
105+
userManager.set(AuthState.LoggedIn)
105106
accountController.getUserFlags().onSuccess { userManager.set(it) }
106107
}.map { Unit }
107108
}

apps/flipcash/shared/session/src/main/kotlin/com/flipcash/app/session/internal/RealSessionController.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ class RealSessionController @Inject constructor(
179179
)
180180
startPolling()
181181
updateUserFlags()
182-
checkForAirdrops()
183182
checkPendingItemsInFeed()
184183
bringActivityFeedCurrent()
185184
shareSheetController.checkForShare()
@@ -251,7 +250,7 @@ class RealSessionController @Inject constructor(
251250

252251
private fun presentWelcomeBonus(amount: LocalFiat) {
253252
scope.launch {
254-
val presentWithBill = false
253+
val presentWithBill = featureFlagController.get(FeatureFlag.WelcomeBonusBill)
255254
toastController.enqueue(
256255
amount = amount,
257256
isDeposit = true,

0 commit comments

Comments
 (0)