Prevent double attachment download

pull/178/head
M66B 5 years ago
parent 593bcd4653
commit f7dff578af

@ -3543,8 +3543,10 @@ public class FragmentCompose extends FragmentBase {
if (attachment.available) {
if (!attachment.isEncryption())
last_available++;
} else
EntityOperation.queue(context, data.draft, EntityOperation.ATTACHMENT, attachment.id);
} else {
if (attachment.progress == null)
EntityOperation.queue(context, data.draft, EntityOperation.ATTACHMENT, attachment.id);
}
db.setTransactionSuccessful();
} finally {

Loading…
Cancel
Save