Bump libsignal to v0.67.0.

Enables new CDSI connection logic based on remote config.
This commit is contained in:
andrew-signal
2025-02-25 18:31:20 -05:00
committed by Greyson Parrelli
parent b6038f8ae3
commit a31ed28b5f
6 changed files with 26 additions and 16 deletions

View File

@@ -96,7 +96,8 @@ object ContactDiscoveryRefreshV2 {
SignalDatabase.recipients.getAllServiceIdProfileKeyPairs(),
Optional.empty(),
10_000,
AppDependencies.libsignalNetwork
AppDependencies.libsignalNetwork,
RemoteConfig.libsignalRouteBasedCDSILookup
) {
Log.i(TAG, "Ignoring token for one-off lookup.")
}
@@ -160,7 +161,8 @@ object ContactDiscoveryRefreshV2 {
SignalDatabase.recipients.getAllServiceIdProfileKeyPairs(),
Optional.ofNullable(token),
timeoutMs,
AppDependencies.libsignalNetwork
AppDependencies.libsignalNetwork,
RemoteConfig.libsignalRouteBasedCDSILookup
) { tokenToSave ->
stopwatch.split("network-pre-token")
if (!isPartialRefresh) {

View File

@@ -1134,5 +1134,12 @@ object RemoteConfig {
hotSwappable = true
)
/** Whether or not libsignal-net's CDSI lookups use the new route-based internals or the old ones */
val libsignalRouteBasedCDSILookup: Boolean by remoteBoolean(
key = "android.libsignal.libsignalRouteBasedCDSILookup",
defaultValue = true,
hotSwappable = true
)
// endregion
}