Delete S/MIME signature data on lock

pull/198/head
M66B 3 years ago
parent 90ba42b113
commit f377f6ba89

@ -5592,12 +5592,13 @@ 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) {
if (message.uid == null)

Loading…
Cancel
Save