mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 19:12:19 +00:00
Allow multiple attachments to download at once.
Not only will this be faster, but it serves as a mitigation for the times when WorkManager gets 'stuck'. Fixes #8427
This commit is contained in:
@@ -63,7 +63,7 @@ public class AttachmentDownloadJob extends ContextJob implements InjectableType
|
|||||||
|
|
||||||
public AttachmentDownloadJob(Context context, long messageId, AttachmentId attachmentId, boolean manual) {
|
public AttachmentDownloadJob(Context context, long messageId, AttachmentId attachmentId, boolean manual) {
|
||||||
super(context, JobParameters.newBuilder()
|
super(context, JobParameters.newBuilder()
|
||||||
.withGroupId(AttachmentDownloadJob.class.getCanonicalName())
|
.withGroupId(AttachmentDownloadJob.class.getSimpleName() + attachmentId.getRowId() + "-" + attachmentId.getUniqueId())
|
||||||
.withNetworkRequirement()
|
.withNetworkRequirement()
|
||||||
.create());
|
.create());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user