Backup delete resub flow state fix.

This commit is contained in:
Alex Hart
2025-06-02 10:54:04 -03:00
committed by Cody Henthorne
parent 109d37c0d2
commit ad652dbaf2
6 changed files with 15 additions and 106 deletions

View File

@@ -1042,6 +1042,13 @@ object BackupRepository {
}
}
fun enablePaidBackupTier() {
Log.i(TAG, "Setting backup tier to PAID", true)
SignalStore.backup.backupTier = MessageBackupTier.PAID
SignalStore.backup.lastCheckInMillis = System.currentTimeMillis()
SignalStore.backup.lastCheckInSnoozeMillis = 0
}
/**
* Grabs the backup tier for the given ACI. Note that this will set the user's backup
* tier to FREE if they are not on PAID, so avoid this method if you don't intend that