Fix 3DS waiting-for-auth state when launching external application.

This commit is contained in:
Alex Hart
2024-06-07 11:14:34 -03:00
committed by Cody Henthorne
parent e6a126d416
commit 4bc6eb96ff
2 changed files with 2 additions and 1 deletions

View File

@@ -150,7 +150,7 @@ class DonateToSignalFragment :
}
is DonateToSignalAction.DisplayGatewaySelectorDialog -> {
Log.d(TAG, "Presenting gateway selector for ${action.inAppPayment}")
Log.d(TAG, "Presenting gateway selector for ${action.inAppPayment.id}")
val navAction = DonateToSignalFragmentDirections.actionDonateToSignalFragmentToGatewaySelectorBottomSheetDialog(action.inAppPayment)
findNavController().safeNavigate(navAction)

View File

@@ -218,6 +218,7 @@ class StripePaymentInProgressViewModel(
.handle(
action = action,
inAppPayment = inAppPayment.copy(
state = InAppPaymentTable.State.WAITING_FOR_AUTHORIZATION,
data = inAppPayment.data.copy(
redemption = null,
waitForAuth = InAppPaymentData.WaitingForAuthorizationState(