mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-01 06:07:37 +00:00
Fix contact photo upload failure.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user