Skip to content

Commit 9e047e3

Browse files
committed
fix(auto-upload): handle upload results
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent bae2f98 commit 9e047e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/com/nextcloud/utils/extensions/UploadResultExtensions.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ fun UploadResult.isNonRetryable(): Boolean = when (this) {
2121
UploadResult.SAME_FILE_CONFLICT,
2222
UploadResult.PRIVILEGES_ERROR,
2323
UploadResult.CREDENTIAL_ERROR,
24+
25+
// most cases covered and mapped from RemoteOperationResult. Most likely UploadResult.UNKNOWN this error will
26+
// occur again
2427
UploadResult.UNKNOWN,
2528

2629
// user's choice

0 commit comments

Comments
 (0)