mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Fixed decrypting attachments
This commit is contained in:
@@ -1312,11 +1312,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
db.attachment().deleteAttachment(a.id);
|
||||
|
||||
// Add decrypted attachments
|
||||
attachments = parts.getAttachments();
|
||||
int sequence = db.attachment().getAttachmentSequence(id);
|
||||
for (EntityAttachment a : parts.getAttachments()) {
|
||||
for (int index = 0; index < attachments.size(); index++) {
|
||||
EntityAttachment a = attachments.get(index);
|
||||
a.message = id;
|
||||
a.sequence = ++sequence;
|
||||
a.id = db.attachment().insertAttachment(a);
|
||||
parts.downloadAttachment(context, index, a.id);
|
||||
}
|
||||
|
||||
db.message().setMessageStored(id, new Date().getTime());
|
||||
|
||||
Reference in New Issue
Block a user