Skip to content

Commit

Permalink
Merge pull request #912 from Infomaniak/prevent-crash-offline-search
Browse files Browse the repository at this point in the history
fix: Do not search over computed body
  • Loading branch information
Lnamw committed Aug 8, 2023
2 parents 060edc1 + 69c20d3 commit 00addb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MailCore/Cache/MailboxManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public final class MailboxManager: ObservableObject {
case .contains(let content):
predicates
.append(
NSPredicate(format: "body.value CONTAINS[c] %@ OR subject CONTAINS[c] %@ OR preview CONTAINS[c] %@",
NSPredicate(format: "subject CONTAINS[c] %@ OR preview CONTAINS[c] %@",
content, content, content)
)
case .everywhere(let searchEverywhere):
Expand Down

0 comments on commit 00addb6

Please sign in to comment.