Fix most of import/export integration tests.

This commit is contained in:
Clark
2024-06-07 16:18:55 -04:00
committed by Alex Hart
parent d5cd790871
commit e62b8de1bc
4 changed files with 12 additions and 5 deletions

View File

@@ -358,6 +358,11 @@ internal class DonationsValues internal constructor(store: KeyValueStore) : Sign
return getBoolean(USER_MANUALLY_CANCELLED, false)
}
@Deprecated("Manual cancellation is stored in InAppPayment records. We should no longer need to set this value.")
fun markUserManuallyCancelled() {
return putBoolean(USER_MANUALLY_CANCELLED, true)
}
@Deprecated("Manual cancellation is stored in InAppPayment records. We no longer need to clear this value.")
fun clearUserManuallyCancelled() {
remove(USER_MANUALLY_CANCELLED)
@@ -459,6 +464,7 @@ internal class DonationsValues internal constructor(store: KeyValueStore) : Sign
Log.d(TAG, "[updateLocalStateForManualCancellation] Clearing expired badge.")
setExpiredBadge(null)
}
SignalStore.donationsValues().markUserManuallyCancelled()
}
val subscriber = InAppPaymentsRepository.getSubscriber(subscriberType)