Revert "Don't show 'Payment Pending' during backup subscription keep-alive flows."

This reverts commit e87aa22d32.
This commit is contained in:
Alex Hart
2026-02-27 17:02:15 -04:00
parent 58ab03b4e3
commit f8d40bf86d

View File

@@ -166,8 +166,7 @@ class BackupStateObserver(
}
val price = latestPayment.data.amount!!.toFiatMoney()
val isKeepAlive = latestPayment.data.redemption?.keepAlive == true
val isPending = latestPayment.state == InAppPaymentTable.State.PENDING && !isKeepAlive
val isPending = SignalDatabase.inAppPayments.hasPendingBackupRedemption()
if (isPending) {
Log.d(TAG, "[getDatabaseBackupState] We have a pending subscription.")
return BackupState.Pending(price = price)
@@ -243,8 +242,7 @@ class BackupStateObserver(
* Utilizes everything we can to resolve the most accurate backup state available, including database and network.
*/
private suspend fun getNetworkBackupState(lastPurchase: InAppPaymentTable.InAppPayment?): BackupState {
val isKeepAlive = lastPurchase?.data?.redemption?.keepAlive == true
if (lastPurchase?.state == InAppPaymentTable.State.PENDING && !isKeepAlive) {
if (lastPurchase?.state == InAppPaymentTable.State.PENDING) {
Log.d(TAG, "[getNetworkBackupState] We have a pending subscription.")
return BackupState.Pending(
price = lastPurchase.data.amount!!.toFiatMoney()