1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-15 08:29:24 +00:00

S/MIME: decrypt inner

This commit is contained in:
M66B 2022-09-17 14:13:56 +02:00
parent 37ffe55680
commit 48e6b058da

View file

@ -8610,7 +8610,7 @@ public class FragmentMessages extends FragmentBase
if (chain == null || chain.length == 0)
throw new IllegalArgumentException("Public key missing");
// Get encrypted message
// Get last encrypted message
File input = null;
List<EntityAttachment> attachments = db.attachment().getAttachments(message.id);
for (EntityAttachment attachment : attachments)
@ -8618,7 +8618,6 @@ public class FragmentMessages extends FragmentBase
if (!attachment.available)
throw new IllegalArgumentException(context.getString(R.string.title_attachments_missing));
input = attachment.getFile(context);
break;
}
if (input == null)