mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Let AttachmentUploadJob handle retrying
This way we can better handle e.g. authorization issues
This commit is contained in:
parent
71f338430e
commit
b7a2de3572
@ -52,7 +52,7 @@ public class AttachmentUploadJob extends BaseJob implements InjectableType {
|
||||
this(new Job.Parameters.Builder()
|
||||
.addConstraint(NetworkConstraint.KEY)
|
||||
.setLifespan(TimeUnit.DAYS.toMillis(1))
|
||||
.setMaxAttempts(1)
|
||||
.setMaxAttempts(5)
|
||||
.build(),
|
||||
attachmentId, destination);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user