Skip to content

Commit

Permalink
chore: Merge branch 'externalLinks-famousLastFivePercent' into extern…
Browse files Browse the repository at this point in the history
…alLinks-addToMyDriveCellAction
  • Loading branch information
adrien-coye committed Dec 18, 2024
2 parents f80e953 + 691feee commit f349a1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kDrive/UI/Controller/Menu/Share/PublicShareViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,14 @@ final class PublicShareViewModel: InMemoryFileListViewModel {
}

private func addToMyDrive(sender: Any?, publicShareProxy: PublicShareProxy) {
guard let currentUserDriveFileManager = accountManager.currentDriveFileManager else {
return
}

let selectedItemsIds = multipleSelectionViewModel?.selectedItems.map(\.id) ?? [] + [rootProxy.id]
let exceptItemIds = multipleSelectionViewModel?.exceptItemIds.map { $0 } ?? []

let saveViewController = SaveFileViewController.instantiate(driveFileManager: driveFileManager)
let saveViewController = SaveFileViewController.instantiate(driveFileManager: currentUserDriveFileManager)
let saveNavigationViewController = SaveFileViewController
.setInNavigationController(saveViewController: saveViewController)

Expand Down

0 comments on commit f349a1a

Please sign in to comment.