From b9a999b0d012800e3d172b947ae2000648797a8e Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Mon, 10 Nov 2025 10:52:19 -0400 Subject: [PATCH] Do nothing if the error returned is SETUP_CANCELLED. --- .../app/subscription/donate/InAppPaymentCheckoutDelegate.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/donate/InAppPaymentCheckoutDelegate.kt b/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/donate/InAppPaymentCheckoutDelegate.kt index 558e7f0fca..0264bee20d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/donate/InAppPaymentCheckoutDelegate.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/settings/app/subscription/donate/InAppPaymentCheckoutDelegate.kt @@ -332,6 +332,9 @@ class InAppPaymentCheckoutDelegate( } when (error.type) { + InAppPaymentData.Error.Type.SETUP_CANCELLED -> { + Log.d(TAG, "User canceled payment setup.", true) + } else -> { Log.d(TAG, "Displaying donation error dialog.", true) errorDialog = DonationErrorDialogs.show(