mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-30 22:12:34 +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:
parent
bfdad2f47c
commit
038238a333
@ -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());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user