Get/update full body on send

This commit is contained in:
M66B 2019-01-13 08:12:47 +00:00
parent 7e9068eeaf
commit 6eda79aa83
3 changed files with 10 additions and 7 deletions

View File

@ -1903,13 +1903,6 @@ public class FragmentCompose extends FragmentEx {
last_available = available;
if (action == R.id.action_send)
if (draft.replying != null || draft.forwarding != null) {
body += HtmlHelper.getQuote(context,
draft.replying == null ? draft.forwarding : draft.replying, false);
dirty = true;
}
if (dirty) {
// Update draft
draft.identity = ident;

View File

@ -295,6 +295,9 @@ public class MessageHelper {
DB db = DB.getInstance(context);
String html = message.read(context);
if (message.replying != null || message.forwarding != null)
html += HtmlHelper.getQuote(context,
message.replying == null ? message.forwarding : message.replying, false);
StringBuilder body = new StringBuilder();
body.append(html);

View File

@ -1812,6 +1812,13 @@ public class ServiceSynchronize extends LifecycleService {
EntityLog.log(this, "Sent via " + ident.host + "/" + ident.user +
" to " + TextUtils.join(", ", to));
if (message.replying != null || message.forwarding != null) {
String html = message.read(ServiceSynchronize.this);
html += HtmlHelper.getQuote(ServiceSynchronize.this,
message.replying == null ? message.forwarding : message.replying, false);
message.write(ServiceSynchronize.this, html);
}
try {
db.beginTransaction();