Add support for upgrades from warning sheet.

This commit is contained in:
Alex Hart
2024-11-06 13:07:34 -04:00
committed by Greyson Parrelli
parent 7f1d59f40a
commit 445b7ef76f
4 changed files with 49 additions and 17 deletions

View File

@@ -134,7 +134,7 @@ class InAppPaymentsBottomSheetDelegate(
}.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribeBy { inAppPayments ->
for (payment in inAppPayments) {
if (isPaymentProcessingError(payment.state, payment.data)) {
BackupAlertBottomSheet.create(BackupAlert.CouldNotCompleteBackup(daysSinceLastBackup = SignalStore.backup.daysSinceLastBackup)).show(fragmentManager, null)
BackupAlertBottomSheet.create(BackupAlert.FailedToRenew).show(fragmentManager, null)
} else if (isUnexpectedCancellation(payment.state, payment.data)) {
BackupAlertBottomSheet.create(BackupAlert.MediaBackupsAreOff).show(fragmentManager, null)
}