|
|
|
@ -1963,7 +1963,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
|
|
|
|
|
|
MessageHelper helper = new MessageHelper((MimeMessage) imessage);
|
|
|
|
|
MessageHelper.MessageParts parts = helper.getMessageParts();
|
|
|
|
|
String body = parts.getHtml();
|
|
|
|
|
String body = parts.getHtml(this);
|
|
|
|
|
String preview = HtmlHelper.getPreview(body);
|
|
|
|
|
message.write(this, body);
|
|
|
|
|
db.message().setMessageContent(message.id, true, preview);
|
|
|
|
@ -2625,7 +2625,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
|
|
|
|
|
|
if (!message.content)
|
|
|
|
|
if (!metered || (message.size != null && message.size < maxSize)) {
|
|
|
|
|
String body = parts.getHtml();
|
|
|
|
|
String body = parts.getHtml(context);
|
|
|
|
|
message.write(context, body);
|
|
|
|
|
db.message().setMessageContent(message.id, true, HtmlHelper.getPreview(body));
|
|
|
|
|
String warnings = parts.getWarnings();
|
|
|
|
|