Update libsignal-service

Fixes #2140
This commit is contained in:
AsamK committed 2026-10-09 18:38:01 +02:00
1 parent 3aeaa34baa
commit 32f652efc9
6 files changed
+16 -8

No files matched your search

@@ -116,8 +116,7 @@ public class ProvisioningManagerImpl implements ProvisioningManager, Closeable {
public URI getDeviceLinkUri() throws TimeoutException, IOException {
try {
var url = urlFuture.get(30, TimeUnit.SECONDS);
// Mode.Link(false) does not advertise any capabilities itself.
return new URI(url + "&capabilities=nopni");
return new URI(url);
} catch (java.util.concurrent.TimeoutException e) {
throw new TimeoutException("Timed out waiting for provisioning URL");
} catch (InterruptedException e) {
@@ -11,6 +11,7 @@ import org.signal.libsignal.zkgroup.profiles.ClientZkProfileOperations;
import org.signal.network.api.AccountApiV2;
import org.signal.network.api.AttachmentApi;
import org.signal.network.api.CallingApi;
import org.signal.network.api.CdnApi;
import org.signal.network.api.CdsApi;
import org.signal.network.api.CertificateApi;
import org.signal.network.api.LinkDeviceApi;
@@ -91,6 +92,7 @@ public class SignalDependencies {
private ClientZkOperations clientZkOperations;
private ProfileService profileService;
private ProfileApi profileApi;
private CdnApi cdnApi;
private CdnService cdnService;
private PreKeyRepository preKeyRepository;
private SignalRestClient signalRestClient;
@@ -271,7 +273,7 @@ public class SignalDependencies {
public AttachmentApi getAttachmentApi() {
return getOrCreate(() -> attachmentApi,
() -> attachmentApi = new AttachmentApi(getAuthenticatedSignalWebSocket(), getPushServiceSocket()));
() -> attachmentApi = new AttachmentApi(getAuthenticatedSignalWebSocket()));
}
public CallingApi getCallingApi() {
@@ -353,7 +355,7 @@ public class SignalDependencies {
public CdnService getCdnService() {
return getOrCreate(() -> cdnService,
() -> cdnService = new CdnService(getSignalRestClient(), getAttachmentApi()));
() -> cdnService = new CdnService(getCdnApi(), getAttachmentApi(), () -> null));
}
public PreKeyRepository getPreKeyRepository() {
@@ -378,7 +380,8 @@ public class SignalDependencies {
ServiceConfig.MAX_ENVELOPE_SIZE,
ServiceConfig.MAX_INCREMENTAL_MACS_PER_ENVELOPE,
() -> true,
getPreKeyRepository()));
getPreKeyRepository(),
getCdnService()));
}
public List<SecureValueRecovery> getSecureValueRecovery() {
@@ -397,6 +400,10 @@ public class SignalDependencies {
getClientZkProfileOperations()));
}
public CdnApi getCdnApi() {
return getOrCreate(() -> cdnApi, () -> cdnApi = new CdnApi(getSignalRestClient()));
}
public ProfileService getProfileService() {
return getOrCreate(() -> profileService,
() -> profileService = new ProfileService(getClientZkProfileOperations(),
@@ -122,6 +122,8 @@ class NumberlessProvisioningTest {
"signal-cli-test",
null,
false,
config.signalServiceConfiguration(),
() -> null,
1000L,
new SecureRandom(),
client);