From 160a658ed9bbda61c4f3b2fd74977b6202b6509b Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 9 Apr 2021 17:04:26 +0200 Subject: [PATCH] Fixed deleting key data on auto save --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index b8fedcb1b0..b1f8420c60 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -4799,7 +4799,7 @@ public class FragmentCompose extends FragmentBase { return draft; } - if (!shouldEncrypt) + if (!shouldEncrypt && !autosave) for (EntityAttachment attachment : attachments) if (attachment.isEncryption()) db.attachment().deleteAttachment(attachment.id);