Skip to content

Commit f467d4a

Browse files
committed
chore(flipcash/session): temporarily disable welcome bill
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent c7645ef commit f467d4a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import com.getcode.opencode.model.accounts.GiftCardAccount
4141
import com.getcode.opencode.model.core.OpenCodePayload
4242
import com.getcode.opencode.model.core.PayloadKind
4343
import com.getcode.opencode.model.financial.LocalFiat
44-
import com.getcode.opencode.model.financial.toFiat
4544
import com.getcode.opencode.model.transactions.AirdropType
4645
import com.getcode.opencode.utils.nonce
4746
import com.getcode.ui.core.RestrictionType
@@ -58,12 +57,10 @@ import com.kik.kikx.models.ScannableKikCode
5857
import kotlinx.coroutines.CoroutineScope
5958
import kotlinx.coroutines.Dispatchers
6059
import kotlinx.coroutines.SupervisorJob
61-
import kotlinx.coroutines.channels.BufferOverflow
6260
import kotlinx.coroutines.delay
6361
import kotlinx.coroutines.flow.MutableStateFlow
6462
import kotlinx.coroutines.flow.StateFlow
6563
import kotlinx.coroutines.flow.asStateFlow
66-
import kotlinx.coroutines.flow.buffer
6764
import kotlinx.coroutines.flow.distinctUntilChanged
6865
import kotlinx.coroutines.flow.filter
6966
import kotlinx.coroutines.flow.filterIsInstance
@@ -72,7 +69,6 @@ import kotlinx.coroutines.flow.map
7269
import kotlinx.coroutines.flow.mapNotNull
7370
import kotlinx.coroutines.flow.onEach
7471
import kotlinx.coroutines.flow.scan
75-
import kotlinx.coroutines.flow.take
7672
import kotlinx.coroutines.flow.update
7773
import kotlinx.coroutines.launch
7874
import kotlinx.coroutines.suspendCancellableCoroutine
@@ -183,6 +179,7 @@ class RealSessionController @Inject constructor(
183179
)
184180
startPolling()
185181
updateUserFlags()
182+
checkForAirdrops()
186183
checkPendingItemsInFeed()
187184
bringActivityFeedCurrent()
188185
shareSheetController.checkForShare()
@@ -254,7 +251,7 @@ class RealSessionController @Inject constructor(
254251

255252
private fun presentWelcomeBonus(amount: LocalFiat) {
256253
scope.launch {
257-
val presentWithBill = featureFlagController.get(FeatureFlag.WelcomeBonusBill)
254+
val presentWithBill = false
258255
toastController.enqueue(
259256
amount = amount,
260257
isDeposit = true,
@@ -282,6 +279,7 @@ class RealSessionController @Inject constructor(
282279
)
283280

284281
presentBillToUser(data = payloadInfo.codeData.toList(), bill = bill)
282+
feedCoordinator.fetchSinceLatest()
285283
}
286284
}
287285

0 commit comments

Comments
 (0)