mirror of https://github.com/M66B/FairEmail.git
Get/update full body on send
This commit is contained in:
parent
7e9068eeaf
commit
6eda79aa83
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue