From 13fbd2587521d38d8a8ec06c0f9dfe655f7cd571 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 16 Feb 2022 13:42:25 +0100 Subject: [PATCH] Template or external body --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index b6e491d247..ec5ef7454a 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -4328,8 +4328,10 @@ public class FragmentCompose extends FragmentBase { db.answer().applyAnswer(a.id, new Date().getTime()); if (answer > 0) data.draft.subject = a.name; - Document d = JsoupEx.parse(a.getHtml(null)); - document.body().append(d.body().html()); + if (TextUtils.isEmpty(external_body)) { + Document d = JsoupEx.parse(a.getHtml(null)); + document.body().append(d.body().html()); + } } data.draft.signature = prefs.getBoolean("signature_new", true);