mirror of https://github.com/M66B/FairEmail.git
Delete S/MIME signature data on lock
This commit is contained in:
parent
90ba42b113
commit
f377f6ba89
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue