Fix issue with not allow non-autorenewing subs

This commit is contained in:
Christian Selig 2022-05-24 21:58:28 -03:00
parent 571c6d60eb
commit ea9af069e8

View file

@ -533,7 +533,7 @@ func (iapr *IAPResponse) currentlyActiveTimedSubscription() string {
timedStatus := "" timedStatus := ""
for _, info := range iapr.PendingRenewalInfo { for _, info := range iapr.PendingRenewalInfo {
if info.SubscriptionExpirationIntent != "" || info.SubscriptionAutoRenewStatus == "0" { if info.SubscriptionExpirationIntent != "" {
timedStatus = "" timedStatus = ""
} else if info.SubscriptionAutoRenewProductID == "com.christianselig.apollo.sub.monthly" { } else if info.SubscriptionAutoRenewProductID == "com.christianselig.apollo.sub.monthly" {
timedStatus = SubscriptionMonthly timedStatus = SubscriptionMonthly