mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add error case for when you don't have enough disk space to create a backup.
This commit is contained in:
committed by
Alex Hart
parent
ccdec5113f
commit
dd8104bf61
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user