Fixed fetching body structure on download

pull/147/head
M66B 6 years ago
parent b8dcfa2454
commit 174ff16b4c

@ -2831,7 +2831,6 @@ public class ServiceSynchronize extends LifecycleService {
fp.add(FetchProfile.Item.SIZE);
fp.add(IMAPFolder.FetchProfileItem.INTERNALDATE);
ifolder.fetch(new Message[]{imessage}, fp);
}
MessageHelper.MessageParts parts = helper.getMessageParts();
@ -2845,8 +2844,7 @@ public class ServiceSynchronize extends LifecycleService {
}
}
for (int i = 0; i < attachments.size(); i++) {
EntityAttachment attachment = attachments.get(i);
for (EntityAttachment attachment : attachments)
if (!attachment.available)
if (!metered || (attachment.size != null && attachment.size < maxSize))
if (!parts.downloadAttachment(context, db, attachment.id, attachment.sequence))

Loading…
Cancel
Save