Skip to content

Commit

Permalink
Merge pull request #806 from Infomaniak/ipad
Browse files Browse the repository at this point in the history
fix: Deselect thread only if isCompact
  • Loading branch information
valentinperignon authored Jun 14, 2023
2 parents 6708d96 + 5a8edef commit cd825a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mail/Views/Thread List/ThreadListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ struct ThreadListView: View {
}
.onAppear {
networkMonitor.start()
viewModel.selectedThread = nil
if viewModel.isCompact {
viewModel.selectedThread = nil
}
}
.onChange(of: splitViewManager.selectedFolder) { newFolder in
changeFolder(newFolder: newFolder)
Expand Down

0 comments on commit cd825a2

Please sign in to comment.