From f2ddefc15050d176d655f0c893f3f06c0c340b2c Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 6 Jul 2019 19:07:23 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index e7d014646d..042cfde59d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -3704,7 +3704,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. // Remove previously decrypted attachments for (EntityAttachment local : attachments) - if (local.encryption == null) + if (local.encryption == null && !"application/pgp-encrypted".equals(local.type)) db.attachment().deleteAttachment(local.id); int sequence = db.attachment().getAttachmentSequence(id);