mirror of
https://github.com/oxen-io/session-android.git
synced 2025-05-01 06:40:50 +00:00
Merge remote-tracking branch 'loki/master' into thumbnail-attach-loading-indicator
This commit is contained in:
commit
12f509c07e
@ -185,8 +185,8 @@ dependencies {
|
|||||||
implementation "com.opencsv:opencsv:4.6"
|
implementation "com.opencsv:opencsv:4.6"
|
||||||
}
|
}
|
||||||
|
|
||||||
def canonicalVersionCode = 74
|
def canonicalVersionCode = 75
|
||||||
def canonicalVersionName = "1.4.5"
|
def canonicalVersionName = "1.4.6"
|
||||||
|
|
||||||
def postFixSize = 10
|
def postFixSize = 10
|
||||||
def abiPostFix = ['armeabi-v7a' : 1,
|
def abiPostFix = ['armeabi-v7a' : 1,
|
||||||
|
@ -27,6 +27,7 @@ import org.whispersystems.signalservice.api.SignalServiceMessageSender;
|
|||||||
import org.whispersystems.signalservice.api.messages.SignalServiceAttachment;
|
import org.whispersystems.signalservice.api.messages.SignalServiceAttachment;
|
||||||
import org.whispersystems.signalservice.api.messages.SignalServiceAttachmentPointer;
|
import org.whispersystems.signalservice.api.messages.SignalServiceAttachmentPointer;
|
||||||
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
|
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
|
||||||
|
import org.whispersystems.signalservice.loki.api.utilities.HTTP;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -52,7 +53,7 @@ public class AttachmentUploadJob extends BaseJob implements InjectableType {
|
|||||||
this(new Job.Parameters.Builder()
|
this(new Job.Parameters.Builder()
|
||||||
.addConstraint(NetworkConstraint.KEY)
|
.addConstraint(NetworkConstraint.KEY)
|
||||||
.setLifespan(TimeUnit.DAYS.toMillis(1))
|
.setLifespan(TimeUnit.DAYS.toMillis(1))
|
||||||
.setMaxAttempts(5)
|
.setMaxAttempts(10)
|
||||||
.build(),
|
.build(),
|
||||||
attachmentId, destination);
|
attachmentId, destination);
|
||||||
}
|
}
|
||||||
@ -109,7 +110,8 @@ public class AttachmentUploadJob extends BaseJob implements InjectableType {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean onShouldRetry(@NonNull Exception exception) {
|
protected boolean onShouldRetry(@NonNull Exception exception) {
|
||||||
return exception instanceof IOException;
|
return exception instanceof IOException ||
|
||||||
|
exception instanceof HTTP.HTTPRequestFailedException;
|
||||||
}
|
}
|
||||||
|
|
||||||
private SignalServiceAttachment getAttachmentFor(Attachment attachment) {
|
private SignalServiceAttachment getAttachmentFor(Attachment attachment) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user