Fix contact photo upload failure.

This commit is contained in:
Alex Hart
2023-08-07 15:28:22 -03:00
committed by GitHub
parent c501a417bb
commit 06dc8ccbdd
11 changed files with 103 additions and 40 deletions

View File

@@ -213,6 +213,7 @@ public final class AttachmentUploadJob extends BaseJob {
.withCaption(attachment.getCaption())
.withCancelationSignal(this::isCanceled)
.withResumableUploadSpec(resumableUploadSpec)
.withIncremental(attachment.getIncrementalDigest() != null)
.withListener((total, progress) -> {
EventBus.getDefault().postSticky(new PartProgressEvent(attachment, PartProgressEvent.Type.NETWORK, total, progress));
if (notification != null) {

View File

@@ -366,7 +366,8 @@ public abstract class PushSendJob extends SendJob {
.withHeight(thumbnailData.getHeight())
.withLength(thumbnailData.getData().length)
.withStream(new ByteArrayInputStream(thumbnailData.getData()))
.withResumableUploadSpec(ApplicationDependencies.getSignalServiceMessageSender().getResumableUploadSpec());
.withResumableUploadSpec(ApplicationDependencies.getSignalServiceMessageSender().getResumableUploadSpec())
.withIncremental(attachment.getIncrementalDigest() != null);
thumbnail = builder.build();
}