From 267a4f4bbc360a0eeeafc1b5cf3041dccf25ebf0 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 16 Feb 2021 15:37:20 +0100 Subject: [PATCH] Nested encryption is not supported --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 675be776d3..25a72772d1 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -6219,6 +6219,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. List remotes = parts.getAttachments(); for (int index = 0; index < remotes.size(); index++) { EntityAttachment remote = remotes.get(index); + if (remote.encryption != null) + continue; remote.message = message.id; remote.sequence = index + 1; remote.id = db.attachment().insertAttachment(remote);