From 27ddd62d7a2e8032663006056fdc92ae17d1c5eb Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Fri, 5 Jun 2026 12:11:02 -0300 Subject: [PATCH] Keep user in gift flow after payment error instead of finishing the activity. Co-authored-by: Greyson Parrelli --- .../badges/gifts/flow/GiftFlowConfirmationFragment.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/badges/gifts/flow/GiftFlowConfirmationFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/badges/gifts/flow/GiftFlowConfirmationFragment.kt index b5a7dee16f..79f1f13f80 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/badges/gifts/flow/GiftFlowConfirmationFragment.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/badges/gifts/flow/GiftFlowConfirmationFragment.kt @@ -306,7 +306,5 @@ class GiftFlowConfirmationFragment : override fun navigateToDonationPending(inAppPayment: InAppPaymentTable.InAppPayment) = error("Not supported for gifts") - override fun exitCheckoutFlow() { - requireActivity().finishAfterTransition() - } + override fun exitCheckoutFlow() = Unit }