marinofaggiana 3 年之前
父節點
當前提交
f755b45358
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      iOSClient/Networking/NCNetworking.swift

+ 9 - 0
iOSClient/Networking/NCNetworking.swift

@@ -180,6 +180,15 @@ import Queuer
             } catch { print(error) }
         }
         
+#if !EXTENSION
+        DispatchQueue.main.async {
+            let appDelegate = UIApplication.shared.delegate as! AppDelegate
+            if !trusted && appDelegate.account != "" {
+                //CCUtility.setCertificateError(appDelegate.account, error: true)
+            }
+        }
+#endif
+
         return trusted
     }