mirror of https://github.com/M66B/FairEmail.git
Fixed replying to messages (2)
This commit is contained in:
parent
dd0a10dc53
commit
7695127d95
|
@ -3659,12 +3659,14 @@ public class FragmentCompose extends FragmentBase {
|
||||||
Elements ref = doc.select("div[fairemail=reference]");
|
Elements ref = doc.select("div[fairemail=reference]");
|
||||||
ref.remove();
|
ref.remove();
|
||||||
|
|
||||||
|
Document b;
|
||||||
if (body == null)
|
if (body == null)
|
||||||
body = Document.createShell("").html();
|
b = Document.createShell("");
|
||||||
Document b = HtmlHelper.sanitize(context, body, true, false);
|
else
|
||||||
body = b.html();
|
b = HtmlHelper.sanitize(context, body, true, false);
|
||||||
|
|
||||||
if (!b.body().html().equals(doc.body().html()) ||
|
if (TextUtils.isEmpty(body) ||
|
||||||
|
!b.body().html().equals(doc.body().html()) ||
|
||||||
(extras != null && extras.containsKey("html"))) {
|
(extras != null && extras.containsKey("html"))) {
|
||||||
dirty = true;
|
dirty = true;
|
||||||
|
|
||||||
|
@ -3710,7 +3712,8 @@ public class FragmentCompose extends FragmentBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
Helper.writeText(draft.getFile(context, draft.revision), body);
|
Helper.writeText(draft.getFile(context, draft.revision), body);
|
||||||
}
|
} else
|
||||||
|
body = p;
|
||||||
|
|
||||||
if (action == R.id.action_undo || action == R.id.action_redo) {
|
if (action == R.id.action_undo || action == R.id.action_redo) {
|
||||||
if (action == R.id.action_undo) {
|
if (action == R.id.action_undo) {
|
||||||
|
|
Loading…
Reference in New Issue