mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 01:36:55 +00:00
Keep encryption related attachments
This commit is contained in:
parent
f1606ebb37
commit
d39c17424e
1 changed files with 3 additions and 1 deletions
|
@ -4141,7 +4141,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
Helper.writeText(message.getFile(context), html);
|
||||
|
||||
// Remove existing attachments
|
||||
db.attachment().deleteAttachments(id);
|
||||
for (EntityAttachment attachment : attachments)
|
||||
if (attachment.encryption == null)
|
||||
db.attachment().deleteAttachment(attachment.id);
|
||||
|
||||
// Add decrypted attachments
|
||||
List<EntityAttachment> remotes = parts.getAttachments();
|
||||
|
|
Loading…
Reference in a new issue