Skip to content

Commit

Permalink
chore: Rebase master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambrdctr committed Jul 12, 2023
1 parent b7e0ffa commit 35c42f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mail/Views/Alerts/DetachMailboxConfirmationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import MailResources
import SwiftUI

struct DetachMailboxConfirmationView: View {
@Environment(\.window) private var window
@EnvironmentObject private var navigationState: NavigationState

let mailbox: Mailbox

Expand Down Expand Up @@ -59,7 +59,7 @@ struct DetachMailboxConfirmationView: View {
Task {
await tryOrDisplayError {
try await AccountManager.instance.detachMailbox(mailbox: mailbox)
await (window?.windowScene?.delegate as? SceneDelegate)?.showMainView()
navigationState.transitionToRootViewDestination(.mainView)
}
}
}
Expand Down

0 comments on commit 35c42f7

Please sign in to comment.