瀏覽代碼

fix checkTrustedChallenge [rollback] + host

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 年之前
父節點
當前提交
c728c432ce
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      iOSClient/AppDelegate.swift

+ 4 - 0
iOSClient/AppDelegate.swift

@@ -569,17 +569,21 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             let alertController = UIAlertController(title: title, message: NSLocalizedString("_server_is_trusted_", comment: ""), preferredStyle: .alert)
             
             alertController.addAction(UIAlertAction(title: NSLocalizedString("_yes_", comment: ""), style: .default, handler: { action in
+                
                 if NCNetworking.shared.certificatesError.contains(currentHost) {
                     NCNetworking.shared.writeCertificate(host: currentHost)
                 }
                 if NCNetworking.shared.certificatesError.contains(pushNotificationServerProxyHost) {
                     NCNetworking.shared.writeCertificate(host: pushNotificationServerProxyHost)
                 }
+                
                 NCNetworking.shared.certificatesError.removeAll()
                 self.startTimerErrorNetworking()
             }))
             
             alertController.addAction(UIAlertAction(title: NSLocalizedString("_no_", comment: ""), style: .default, handler: { action in
+                
+                NCNetworking.shared.certificatesError.removeAll()
                 self.startTimerErrorNetworking()
             }))