Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Public Share works with app lock #1379

Draft
wants to merge 1 commit into
base: externalLinks-famousLastFivePercent
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions kDrive/AppRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public struct AppRouter: AppNavigable {
@LazyInjectService private var availableOfflineManager: AvailableOfflineManageable
@LazyInjectService private var accountManager: AccountManageable
@LazyInjectService private var infomaniakLogin: InfomaniakLoginable
@LazyInjectService private var deeplinkService: DeeplinkServiceable

@LazyInjectService var backgroundDownloadSessionManager: BackgroundDownloadSessionManager
@LazyInjectService var backgroundUploadSessionManager: BackgroundUploadSessionManager
Expand Down Expand Up @@ -146,6 +147,7 @@ public struct AppRouter: AppNavigable {
Task {
await askForReview()
await askUserToRemovePicturesIfNecessary()
deeplinkService.processDeeplinksPostAuthentication()
}
case .onboarding:
showOnboarding()
Expand Down Expand Up @@ -667,6 +669,10 @@ public struct AppRouter: AppNavigable {
return
}

if let topMostViewController, (topMostViewController as? LockedAppViewController) != nil {
return
}

rootViewController.dismiss(animated: false) {
let configuration = FileListViewModel.Configuration(selectAllSupported: true,
rootTitle: nil,
Expand Down
3 changes: 0 additions & 3 deletions kDrive/UI/Controller/LoginDelegateHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import kDriveResources
public final class LoginDelegateHandler: InfomaniakLoginDelegate {
@LazyInjectService var accountManager: AccountManageable
@LazyInjectService var router: AppNavigable
@LazyInjectService var deeplinkService: DeeplinkServiceable

var didStartLoginCallback: (() -> Void)?
var didCompleteLoginCallback: (() -> Void)?
Expand Down Expand Up @@ -58,8 +57,6 @@ public final class LoginDelegateHandler: InfomaniakLoginDelegate {
}

didCompleteLoginCallback?()

deeplinkService.processDeeplinksPostAuthentication()
}
}

Expand Down
Loading