Skip to content

Commit

Permalink
fix: Fix incorrect folder passed (#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon authored May 2, 2024
2 parents c11711c + c80023e commit f307638
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mail/Views/Thread List/FlushFolderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ struct FlushFolderView: View {

Button {
matomo.track(eventWithCategory: .threadList, name: "empty\(folder.matomoName.capitalized)")

let frozenFolder = folder.freezeIfNeeded()
flushAlert = FlushAlertState {
await tryOrDisplayError {
_ = try await mailboxManager.flushFolder(folder: folder)
_ = try await mailboxManager.flushFolder(folder: frozenFolder)
}
}
} label: {
Expand Down

0 comments on commit f307638

Please sign in to comment.