mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix link+sync uploads.
This commit is contained in:
committed by
Greyson Parrelli
parent
00e749834f
commit
66f851e92a
@@ -1992,7 +1992,11 @@ public class PushServiceSocket {
|
||||
}
|
||||
|
||||
public void uploadBackupFile(AttachmentUploadForm uploadForm, String resumableUploadUrl, InputStream data, long dataLength) throws IOException {
|
||||
uploadToCdn3(resumableUploadUrl, data, "application/octet-stream", dataLength, false, new NoCipherOutputStreamFactory(), null, null, uploadForm.headers);
|
||||
if (uploadForm.cdn == 2) {
|
||||
uploadToCdn2(resumableUploadUrl, data, "application/octet-stream", dataLength, false, new NoCipherOutputStreamFactory(), null, null);
|
||||
} else {
|
||||
uploadToCdn3(resumableUploadUrl, data, "application/octet-stream", dataLength, false, new NoCipherOutputStreamFactory(), null, null, uploadForm.headers);
|
||||
}
|
||||
}
|
||||
|
||||
private AttachmentDigest uploadToCdn3(String resumableUrl,
|
||||
|
||||
Reference in New Issue
Block a user