|
|
@ -534,6 +534,9 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|
|
|
if (plain != null && plain)
|
|
|
|
if (plain != null && plain)
|
|
|
|
body = body.replace("<div x-plain=\"true\">", "<div>");
|
|
|
|
body = body.replace("<div x-plain=\"true\">", "<div>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String language = HtmlHelper.getLanguage(this, body);
|
|
|
|
|
|
|
|
String preview = HtmlHelper.getPreview(body);
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
db.beginTransaction();
|
|
|
|
db.beginTransaction();
|
|
|
|
|
|
|
|
|
|
|
@ -557,9 +560,9 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|
|
|
Helper.writeText(file, body);
|
|
|
|
Helper.writeText(file, body);
|
|
|
|
db.message().setMessageContent(message.id,
|
|
|
|
db.message().setMessageContent(message.id,
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
HtmlHelper.getLanguage(this, body),
|
|
|
|
language,
|
|
|
|
parts.isPlainOnly(),
|
|
|
|
parts.isPlainOnly(),
|
|
|
|
HtmlHelper.getPreview(body),
|
|
|
|
preview,
|
|
|
|
parts.getWarnings(message.warning));
|
|
|
|
parts.getWarnings(message.warning));
|
|
|
|
|
|
|
|
|
|
|
|
EntityAttachment.copy(this, id, message.id);
|
|
|
|
EntityAttachment.copy(this, id, message.id);
|
|
|
|