Small improvement

This commit is contained in:
M66B 2019-07-06 19:07:23 +02:00
parent 3ff91764d8
commit f2ddefc150
1 changed files with 1 additions and 1 deletions

View File

@ -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);