Only do local donation cancel if it's currently active.

This commit is contained in:
Greyson Parrelli 2024-06-14 14:58:01 -04:00
parent 58b6e49aae
commit 6b5de6e3e5

View file

@ -225,7 +225,7 @@ public final class StorageSyncHelper {
InAppPaymentsRepository.setSubscriber(remoteSubscriber);
}
if (update.getNew().isSubscriptionManuallyCancelled()) {
if (update.getNew().isSubscriptionManuallyCancelled() && !update.getOld().isSubscriptionManuallyCancelled()) {
SignalStore.donationsValues().updateLocalStateForManualCancellation(InAppPaymentSubscriberRecord.Type.DONATION);
}