mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Search text instead of HTML
This commit is contained in:
parent
1772530ae6
commit
21488514ed
1 changed files with 3 additions and 2 deletions
|
@ -202,8 +202,9 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
|||
try {
|
||||
File file = EntityMessage.getFile(context, match.id);
|
||||
if (file.exists()) {
|
||||
String body = Helper.readText(file);
|
||||
if (body.toLowerCase(Locale.ROOT).contains(find))
|
||||
String html = Helper.readText(file);
|
||||
String text = HtmlHelper.getText(html);
|
||||
if (text.toLowerCase(Locale.ROOT).contains(find))
|
||||
match.matched = true;
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
|
|
Loading…
Reference in a new issue