mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 19:29:54 +01:00
Add BackupSubscriptionCheckJob.
This commit is contained in:
committed by
Greyson Parrelli
parent
24209756e3
commit
5bc8435d25
@@ -178,10 +178,14 @@ object InAppPaymentsRepository {
|
||||
return when (inAppPayment.type) {
|
||||
InAppPaymentType.UNKNOWN -> error("Unsupported type UNKNOWN.")
|
||||
InAppPaymentType.ONE_TIME_GIFT, InAppPaymentType.ONE_TIME_DONATION -> "$JOB_PREFIX${inAppPayment.id.serialize()}"
|
||||
InAppPaymentType.RECURRING_DONATION, InAppPaymentType.RECURRING_BACKUP -> "$JOB_PREFIX${inAppPayment.type.code}"
|
||||
InAppPaymentType.RECURRING_DONATION, InAppPaymentType.RECURRING_BACKUP -> getRecurringJobQueueKey(inAppPayment.type)
|
||||
}
|
||||
}
|
||||
|
||||
fun getRecurringJobQueueKey(inAppPaymentType: InAppPaymentType): String {
|
||||
return "$JOB_PREFIX${inAppPaymentType.code}"
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a duration to utilize for jobs tied to different payment methods. For long running bank transfers, we need to
|
||||
* allow extra time for completion.
|
||||
|
||||
Reference in New Issue
Block a user