Revert "Fix contact photo upload failure."

This reverts commit 06dc8ccbdd.
This commit is contained in:
Nicholas Tinsley
2023-08-18 15:52:42 -04:00
committed by Cody Henthorne
parent 61b97fd09b
commit b5f82beb46
11 changed files with 40 additions and 103 deletions

View File

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