Automatically download inline images on expanding message

This commit is contained in:
M66B
2019-08-20 21:52:01 +02:00
parent 5260162986
commit 348fd3806d
2 changed files with 12 additions and 1 deletions

View File

@@ -2017,7 +2017,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
List<EntityAttachment> attachments = db.attachment().getAttachments(message.id);
for (EntityAttachment attachment : attachments)
if (!attachment.available && !TextUtils.isEmpty(attachment.cid))
if (!attachment.available && attachment.isInline() && attachment.isImage())
EntityOperation.queue(context, message, EntityOperation.ATTACHMENT, attachment.id);
db.setTransactionSuccessful();