From f41a0f8f97ad1382fca7ced5d1087fea29f6204d Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Mon, 1 Dec 2025 17:03:05 -0400 Subject: [PATCH] Throw a retry error if we get an execution error while processing one-time donations. --- .../securesms/jobs/InAppPaymentOneTimeContextJob.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/InAppPaymentOneTimeContextJob.kt b/app/src/main/java/org/thoughtcrime/securesms/jobs/InAppPaymentOneTimeContextJob.kt index 2af6e49e15..ba34f3a2ae 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/InAppPaymentOneTimeContextJob.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/InAppPaymentOneTimeContextJob.kt @@ -183,7 +183,8 @@ class InAppPaymentOneTimeContextJob private constructor( throw IOException("Could not validate credential.") } } else { - info("Encountered a retryable error", serviceResponse.executionError.orNull()) + warning("Encountered a retryable error", serviceResponse.executionError.orNull()) + throw InAppPaymentRetryException(serviceResponse.executionError.orNull()) } }