Rename DonationValues to InAppPaymentValues.

This commit is contained in:
Alex Hart
2024-06-27 09:57:16 -03:00
committed by Cody Henthorne
parent b943df1ce4
commit 77d3116431
49 changed files with 204 additions and 204 deletions

View File

@@ -31,7 +31,7 @@ internal class SubscriberIdMigrationJob(
override fun performMigration() {
Currency.getAvailableCurrencies().forEach { currency ->
val subscriber = SignalStore.donations.getSubscriber(currency)
val subscriber = SignalStore.inAppPayments.getSubscriber(currency)
if (subscriber != null) {
SignalDatabase.inAppPaymentSubscribers.insertOrReplace(
@@ -39,8 +39,8 @@ internal class SubscriberIdMigrationJob(
subscriber.subscriberId,
subscriber.currency,
InAppPaymentSubscriberRecord.Type.DONATION,
SignalStore.donations.shouldCancelSubscriptionBeforeNextSubscribeAttempt,
SignalStore.donations.getSubscriptionPaymentSourceType().toPaymentMethodType()
SignalStore.inAppPayments.shouldCancelSubscriptionBeforeNextSubscribeAttempt,
SignalStore.inAppPayments.getSubscriptionPaymentSourceType().toPaymentMethodType()
)
)
}