Add error case for when you don't have enough disk space to create a backup.

This commit is contained in:
Greyson Parrelli
2025-11-12 14:33:40 -05:00
committed by Alex Hart
parent ccdec5113f
commit dd8104bf61
4 changed files with 41 additions and 19 deletions

View File

@@ -602,11 +602,14 @@ class BackupValues(store: KeyValueStore) : SignalStoreValues(store) {
/** A temporary failure, usually cause by poor network. */
TRANSIENT(1),
/** The validation of the backup file failed. This likely cannot be fixed without an app update. */
/** The validation of the backup file failed. This likely cannot be fixed without an app update. */
VALIDATION(2),
/** The backup file itself is too large. The only resolution would be for the user to delete some number of messages. */
BACKUP_FILE_TOO_LARGE(3);
/** The backup file itself is too large. The only resolution would be for the user to delete some number of messages. */
BACKUP_FILE_TOO_LARGE(3),
/** We do not have enough space on the device to create the backup file. */
NOT_ENOUGH_DISK_SPACE(4);
companion object {