Small improvements

This commit is contained in:
M66B
2019-10-05 12:42:04 +02:00
parent 90fd7b440f
commit ef890934e2
4 changed files with 42 additions and 21 deletions

View File

@@ -267,7 +267,9 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
if (message == null || message.uid == null)
return null;
db.attachment().setProgress(id, 0);
EntityAttachment attachment = db.attachment().getAttachment(id);
if (attachment == null || attachment.progress != null || attachment.available)
return null;
EntityOperation.queue(context, message, EntityOperation.ATTACHMENT, id);