Update to libsignal 0.86.1

This commit is contained in:
Jordan Rose
2025-11-07 13:34:31 -08:00
committed by GitHub
parent 945453cb81
commit b2e547f9f2
37 changed files with 119 additions and 103 deletions

View File

@@ -9,7 +9,6 @@ import com.bumptech.glide.util.ContentLengthInputStream;
import org.signal.core.util.concurrent.SignalExecutors;
import org.signal.core.util.logging.Log;
import org.signal.libsignal.protocol.util.Pair;
import org.thoughtcrime.securesms.util.Util;
import java.io.FilterInputStream;
@@ -21,6 +20,8 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Optional;
import kotlin.Pair;
import okhttp3.CacheControl;
import okhttp3.Call;
import okhttp3.OkHttpClient;
@@ -137,9 +138,9 @@ public class ChunkedDataFetcher {
List<ByteRange> requestPattern;
try {
if (firstChunk.isPresent()) {
requestPattern = Stream.of(getRequestPattern(contentLength - firstChunk.get().second()))
.map(b -> new ByteRange(b.start + firstChunk.get().second(),
b.end + firstChunk.get().second(),
requestPattern = Stream.of(getRequestPattern(contentLength - firstChunk.get().getSecond()))
.map(b -> new ByteRange(b.start + firstChunk.get().getSecond(),
b.end + firstChunk.get().getSecond(),
b.ignoreFirst))
.toList();
} else {
@@ -156,7 +157,7 @@ public class ChunkedDataFetcher {
List<InputStream> streams = new ArrayList<>(controllers.size() + (firstChunk.isPresent() ? 1 : 0));
if (firstChunk.isPresent()) {
streams.add(firstChunk.get().first());
streams.add(firstChunk.get().getFirst());
}
Stream.of(controllers).forEach(compositeController::addController);