marinofaggiana 5 лет назад
Родитель
Сommit
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 {