mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Use invisible text for preview text
Like Gmail, Outlook and Apple do
This commit is contained in:
@@ -885,7 +885,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||
if (criteria.in_message) {
|
||||
// This won't match <p>An <b>example</b><p> when searching for "An example"
|
||||
if (contains(html, criteria.query, partial, true)) {
|
||||
String text = HtmlHelper.getFullText(html);
|
||||
String text = HtmlHelper.getFullText(html, false);
|
||||
if (contains(text, criteria.query, partial, false))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user