Debug: preview hidden/quotes

This commit is contained in:
M66B
2024-08-24 08:45:42 +02:00
parent 9386f13807
commit 1564a93338
16 changed files with 84 additions and 27 deletions

View File

@@ -1198,7 +1198,7 @@ public class EntityRule {
File file = reply.getFile(context);
Helper.writeText(file, body);
String text = HtmlHelper.getFullText(body, true);
String text = HtmlHelper.getFullText(context, body);
reply.preview = HtmlHelper.getPreview(text);
reply.language = HtmlHelper.getLanguage(context, reply.subject, text);
db.message().setMessageContent(reply.id,
@@ -1314,7 +1314,7 @@ public class EntityRule {
.append(' ').append(message.subject).append(". ");
String body = Helper.readText(message.getFile(context));
String text = HtmlHelper.getFullText(body, false);
String text = HtmlHelper.getFullText(context, body);
String preview = HtmlHelper.getPreview(text);
if (!TextUtils.isEmpty(preview))