Fix gift donation getting stuck in pending.

This commit is contained in:
Cody Henthorne 2024-01-03 11:11:36 -05:00 committed by Clark Chen
parent 3fa3b93c85
commit abf22eff44

View file

@ -237,6 +237,10 @@ public class BoostReceiptRequestResponseJob extends BaseJob {
receiptCredentialPresentation.serialize())
.putBlobAsString(DonationReceiptRedemptionJob.INPUT_TERMINAL_DONATION, terminalDonation.encode())
.serialize());
if (donationErrorSource == DonationErrorSource.GIFT) {
SignalStore.donationsValues().setPendingOneTimeDonation(null);
}
} else {
Log.w(TAG, "Encountered a retryable exception: " + response.getStatus(), response.getExecutionError().orElse(null), true);
throw new RetryableException();