瀏覽代碼

Coding

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

+ 3 - 1
iOSClient/AppDelegate.swift

@@ -667,9 +667,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     func requestAccount() {
               
         if isPasscodePresented() { return }
+        if !CCUtility.getAccountRequest() { return }
+        
         let accounts = NCManageDatabase.shared.getAllAccount()
         
-        if CCUtility.getAccountRequest() && accounts.count > 1 {
+        if accounts.count > 1 {
             
             if let vcAccountRequest = UIStoryboard(name: "NCAccountRequest", bundle: nil).instantiateInitialViewController() as? NCAccountRequest {