mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Bump libsignal to v0.67.0.
Enables new CDSI connection logic based on remote config.
This commit is contained in:
committed by
Greyson Parrelli
parent
b6038f8ae3
commit
a31ed28b5f
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user