Browse Source

Dont dismiss error or stopped notifications

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 year ago
parent
commit
c4c7773147

+ 1 - 2
app/src/main/java/com/nextcloud/client/jobs/upload/FileUploadWorker.kt

@@ -238,9 +238,8 @@ class FileUploadWorker(
         if (!isStopped || !result.isCancelled) {
             uploadsStorageManager.updateDatabaseUploadResult(result, operation)
             notifyUploadResult(operation, result)
+            notificationManager.dismissWorkerNotifications()
         }
-
-        notificationManager.dismissWorkerNotifications()
     }
 
     @Suppress("ReturnCount")