marinofaggiana 3 years ago
parent
commit
9f0f2b61d7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      iOSClient/AppDelegate.swift
  2. 1 1
      iOSClient/Main/NCFunctionCenter.swift

+ 1 - 1
iOSClient/AppDelegate.swift

@@ -526,7 +526,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         
         if account == "" { return }
         
-        // check unauthorized server (401)
+        // check unauthorized server (401/403)
         if CCUtility.getPassword(account)!.count == 0 {
             openLogin(viewController: window?.rootViewController, selector: NCGlobal.shared.introLogin, openLoginWeb: true)
         }

+ 1 - 1
iOSClient/Main/NCFunctionCenter.swift

@@ -174,7 +174,7 @@ import NCCommunication
                 
                 if metadata.account == appDelegate.account {
                     if errorCode != 0 {
-                        if errorCode != -999 && errorCode != 401 && errorDescription != "" {
+                        if errorCode != -999 && errorDescription != "" {
                             NCContentPresenter.shared.messageNotification("_upload_file_", description: errorDescription, delay: NCGlobal.shared.dismissAfterSecond, type: NCContentPresenter.messageType.error, errorCode: errorCode)
                         }
                     }