From acf2f3d12574a16071381a6bd20fbd72728f4a5a Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Thu, 8 Apr 2021 12:15:25 +0200 Subject: [PATCH] - update SDK - fix finding (1) from #930: wrong error message trying to create a folder in an account with invalid token --- ios-sdk | 2 +- ownCloud Intents/CreateFolderIntentHandler.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ios-sdk b/ios-sdk index 29c2eb835..e3b043fbc 160000 --- a/ios-sdk +++ b/ios-sdk @@ -1 +1 @@ -Subproject commit 29c2eb835bbd017f0d417e9c77359d909215fe50 +Subproject commit e3b043fbcc234e7610dc7cb22b7020760ce15615 diff --git a/ownCloud Intents/CreateFolderIntentHandler.swift b/ownCloud Intents/CreateFolderIntentHandler.swift index 03c9d6c74..ddd71ea48 100644 --- a/ownCloud Intents/CreateFolderIntentHandler.swift +++ b/ownCloud Intents/CreateFolderIntentHandler.swift @@ -123,7 +123,7 @@ public class CreateFolderIntentHandler: NSObject, CreateFolderIntentHandling, OC } } } else if core != nil { - self.complete(with: CreateFolderIntentResponse(code: .pathFailure, userActivity: nil)) + self.complete(with: CreateFolderIntentResponse(code: (error?.isAuthenticationError == true) ? .authenticationFailed : .pathFailure, userActivity: nil)) } else { self.complete(with: CreateFolderIntentResponse(code: .failure, userActivity: nil)) }