marinofaggiana 5 년 전
부모
커밋
a49cc88d10
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      iOSClient/Utility/NCContentPresenter.swift

+ 5 - 2
iOSClient/Utility/NCContentPresenter.swift

@@ -51,8 +51,11 @@ class NCContentPresenter: NSObject {
     
     @objc func messageNotification(_ title: String, description: String?, delay: TimeInterval, type: messageType, errorCode: Int) {
                        
-        if errorCode == lastErrorCode { return }
-        else { lastErrorCode = errorCode }
+        if errorCode == lastErrorCode {
+            if errorCode ==  Int(CFNetworkErrors.cfurlErrorNotConnectedToInternet.rawValue) { return }
+        } else {
+            lastErrorCode = errorCode
+        }
         
         DispatchQueue.main.async {
             switch errorCode {