marinofaggiana 4 years ago
parent
commit
e5d07c916b
1 changed files with 1 additions and 3 deletions
  1. 1 3
      iOSClient/Networking/NCNetworkingNotificationCenter.swift

+ 1 - 3
iOSClient/Networking/NCNetworkingNotificationCenter.swift

@@ -138,9 +138,7 @@ import Foundation
             if let metadata = userInfo["metadata"] as? tableMetadata, let errorCode = userInfo["errorCode"] as? Int, let errorDescription = userInfo["errorDescription"] as? String {
                                                 
                 if metadata.account == appDelegate.account {
-                    if errorCode == 0 {
-                        
-                    } else {
+                    if errorCode != 0 {
                         if errorCode != -999 && errorCode != 401 && errorDescription != "" {
                             NCContentPresenter.shared.messageNotification("_upload_file_", description: errorDescription, delay: TimeInterval(k_dismissAfterSecond), type: NCContentPresenter.messageType.error, errorCode: errorCode)
                         }