Delete S/MIME signature data on lock

This commit is contained in:
M66B 2021-04-25 11:43:26 +02:00
parent 90ba42b113
commit f377f6ba89
1 changed files with 4 additions and 3 deletions

View File

@ -5592,11 +5592,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
boolean inline = true;
List<EntityAttachment> attachments = db.attachment().getAttachments(message.id);
for (EntityAttachment attachment : attachments) {
for (EntityAttachment attachment : attachments)
if (attachment.encryption != null) {
inline = false;
break;
}
if (EntityMessage.SMIME_SIGNENCRYPT.equals(message.ui_encrypt) &&
!EntityAttachment.SMIME_MESSAGE.equals(attachment.encryption))
db.attachment().deleteAttachment(attachment.id);
}
if (inline) {