1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Fixed loading draft without uid

This commit is contained in:
M66B 2020-09-04 20:49:53 +02:00
parent 4394843878
commit b1794c6086

View file

@ -3796,7 +3796,7 @@ public class FragmentCompose extends FragmentBase {
File file = data.draft.getFile(context);
Document doc = (data.draft.uid == null ? Document.createShell("") : JsoupEx.parse(file));
Document doc = (data.draft.content ? JsoupEx.parse(file) : Document.createShell(""));
doc.select("div[fairemail=signature]").remove();
Elements ref = doc.select("div[fairemail=reference]");
ref.remove();