1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Trim summaries

This commit is contained in:
M66B 2024-06-23 09:47:15 +02:00
parent 1ab373d1c9
commit ea882f27f3

View file

@ -1584,7 +1584,7 @@ public class EntityRule {
try {
Spanned summary = AI.getSummaryText(context, message, -1L);
message.preview = (summary == null ? null : summary.toString());
message.preview = (summary == null ? null : summary.toString().trim());
} catch (Throwable ex) {
message.error = Log.formatThrowable(ex);
db.message().setMessageError(message.id, message.error);