Skip to content

Commit

Permalink
fix: Remove unused saveInKdrive (replaced by saveThreadInKdrive)
Browse files Browse the repository at this point in the history
  • Loading branch information
lebojo committed Oct 31, 2024
1 parent 2c76c8a commit cfac0b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
8 changes: 1 addition & 7 deletions MailCore/Cache/Actions/Action+List.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ extension Action: CaseIterable {
star ? .unstar : .star,
print ? .print : nil,
.shareMailLink,
platformDetector.isMac ? nil : .saveMailInkDrive,
platformDetector.isMac ? nil : .saveThreadInkDrive,
userIsStaff ? .reportDisplayProblem : nil
]

Expand Down Expand Up @@ -363,12 +363,6 @@ public extension Action {
iconResource: MailResourcesAsset.emailActionShare,
matomoName: "shareLink"
)
static let saveMailInkDrive = Action(
id: "saveMailInkDrive",
title: MailResourcesStrings.Localizable.saveMailInkDrive,
iconResource: MailResourcesAsset.kdriveLogo,
matomoName: "saveInkDrive"
)
static let saveThreadInkDrive = Action(
id: "saveThreadInkDrive",
title: MailResourcesStrings.Localizable.saveMailInkDrive,
Expand Down
12 changes: 0 additions & 12 deletions MailCore/Cache/Actions/ActionsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,6 @@ public class ActionsManager: ObservableObject {
)
}
}
case .saveMailInkDrive:
guard !platformDetector.isMac else {
return
}
Task { @MainActor in
do {
let fileURL = try await mailboxManager.apiFetcher.download(messages: [messages.first!])
try DeeplinkService().shareFilesToKdrive(fileURL)
} catch {
SentrySDK.capture(error: error)
}
}
case .saveThreadInkDrive:
guard !platformDetector.isMac else {
return
Expand Down

0 comments on commit cfac0b9

Please sign in to comment.