Skip to content

Commit

Permalink
chore: sonarcloud feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Jun 8, 2023
1 parent 6d55d6f commit 1add07d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Mail/Views/Thread List/ThreadListViewModel+Observation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ extension ThreadListViewModel {
DispatchQueue.main.sync {
self.nextThreadIfNeeded(from: filteredThreads)
self.filteredThreads = filteredThreads
if self.filter != .all && filteredThreads.count == 1
&& self.filter.accepts(thread: filteredThreads[0]) != true {
if self.filter != .all,
filteredThreads.count == 1,
!self.filter.accepts(thread: filteredThreads[0]) {
self.filter = .all
}
withAnimation {
Expand Down

0 comments on commit 1add07d

Please sign in to comment.