mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-26 14:09:58 +00:00
Fix checks in backup subscription check job.
This commit is contained in:
@@ -29,7 +29,20 @@ sealed interface BillingPurchaseResult {
|
||||
val oneMonthAgo = now - 31.days
|
||||
val purchaseTime = this.purchaseTime.milliseconds
|
||||
|
||||
return oneMonthAgo >= purchaseTime
|
||||
return oneMonthAgo < purchaseTime
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return """
|
||||
BillingPurchaseResult {
|
||||
purchaseState: $purchaseState
|
||||
purchaseToken: <redacted>
|
||||
purchaseTime: $purchaseTime
|
||||
isAcknowledged: $isAcknowledged
|
||||
isAutoRenewing: $isAutoRenewing
|
||||
isWithinTheLastMonth: ${isWithinTheLastMonth()}
|
||||
}
|
||||
""".trimIndent()
|
||||
}
|
||||
}
|
||||
data object UserCancelled : BillingPurchaseResult
|
||||
|
||||
Reference in New Issue
Block a user