marinofaggiana 4 년 전
부모
커밋
e5d07c916b
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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)
                         }