mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Update libsignal-service-java
This commit is contained in:
parent
d4e1f9b7f1
commit
419beee29a
5 changed files with 20 additions and 20 deletions
|
@ -1384,6 +1384,10 @@
|
||||||
"name":"org.bouncycastle.jcajce.provider.asymmetric.COMPOSITE$Mappings",
|
"name":"org.bouncycastle.jcajce.provider.asymmetric.COMPOSITE$Mappings",
|
||||||
"methods":[{"name":"<init>","parameterTypes":[] }]
|
"methods":[{"name":"<init>","parameterTypes":[] }]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name":"org.bouncycastle.jcajce.provider.asymmetric.CompositeSignatures$Mappings",
|
||||||
|
"methods":[{"name":"<init>","parameterTypes":[] }]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name":"org.bouncycastle.jcajce.provider.asymmetric.DH$Mappings",
|
"name":"org.bouncycastle.jcajce.provider.asymmetric.DH$Mappings",
|
||||||
"methods":[{"name":"<init>","parameterTypes":[] }]
|
"methods":[{"name":"<init>","parameterTypes":[] }]
|
||||||
|
@ -2748,6 +2752,10 @@
|
||||||
"name":"org.whispersystems.signalservice.internal.storage.protos.ContactRecord",
|
"name":"org.whispersystems.signalservice.internal.storage.protos.ContactRecord",
|
||||||
"allDeclaredFields":true
|
"allDeclaredFields":true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name":"org.whispersystems.signalservice.internal.storage.protos.ContactRecord$Name",
|
||||||
|
"allDeclaredFields":true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.storage.protos.GroupV1Record",
|
"name":"org.whispersystems.signalservice.internal.storage.protos.GroupV1Record",
|
||||||
"allDeclaredFields":true
|
"allDeclaredFields":true
|
||||||
|
|
|
@ -233,7 +233,7 @@ public class RecipientHelper {
|
||||||
token,
|
token,
|
||||||
dependencies.getServiceEnvironmentConfig().cdsiMrenclave(),
|
dependencies.getServiceEnvironmentConfig().cdsiMrenclave(),
|
||||||
null,
|
null,
|
||||||
dependencies.getServiceEnvironmentConfig().netEnvironment(),
|
dependencies.getLibSignalNetwork(),
|
||||||
newToken -> {
|
newToken -> {
|
||||||
if (isPartialRefresh) {
|
if (isPartialRefresh) {
|
||||||
account.getCdsiStore().updateAfterPartialCdsQuery(newNumbers);
|
account.getCdsiStore().updateAfterPartialCdsQuery(newNumbers);
|
||||||
|
|
|
@ -3,6 +3,7 @@ package org.asamk.signal.manager.internal;
|
||||||
import org.asamk.signal.manager.config.ServiceConfig;
|
import org.asamk.signal.manager.config.ServiceConfig;
|
||||||
import org.asamk.signal.manager.config.ServiceEnvironmentConfig;
|
import org.asamk.signal.manager.config.ServiceEnvironmentConfig;
|
||||||
import org.signal.libsignal.metadata.certificate.CertificateValidator;
|
import org.signal.libsignal.metadata.certificate.CertificateValidator;
|
||||||
|
import org.signal.libsignal.net.Network;
|
||||||
import org.signal.libsignal.zkgroup.profiles.ClientZkProfileOperations;
|
import org.signal.libsignal.zkgroup.profiles.ClientZkProfileOperations;
|
||||||
import org.whispersystems.signalservice.api.SignalServiceAccountManager;
|
import org.whispersystems.signalservice.api.SignalServiceAccountManager;
|
||||||
import org.whispersystems.signalservice.api.SignalServiceDataStore;
|
import org.whispersystems.signalservice.api.SignalServiceDataStore;
|
||||||
|
@ -48,6 +49,7 @@ public class SignalDependencies {
|
||||||
private ClientZkOperations clientZkOperations;
|
private ClientZkOperations clientZkOperations;
|
||||||
|
|
||||||
private PushServiceSocket pushServiceSocket;
|
private PushServiceSocket pushServiceSocket;
|
||||||
|
private Network libSignalNetwork;
|
||||||
private SignalWebSocket signalWebSocket;
|
private SignalWebSocket signalWebSocket;
|
||||||
private SignalServiceMessageReceiver messageReceiver;
|
private SignalServiceMessageReceiver messageReceiver;
|
||||||
private SignalServiceMessageSender messageSender;
|
private SignalServiceMessageSender messageSender;
|
||||||
|
@ -104,6 +106,11 @@ public class SignalDependencies {
|
||||||
ServiceConfig.AUTOMATIC_NETWORK_RETRY));
|
ServiceConfig.AUTOMATIC_NETWORK_RETRY));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Network getLibSignalNetwork() {
|
||||||
|
return getOrCreate(() -> libSignalNetwork,
|
||||||
|
() -> libSignalNetwork = new Network(serviceEnvironmentConfig.netEnvironment()));
|
||||||
|
}
|
||||||
|
|
||||||
public SignalServiceAccountManager getAccountManager() {
|
public SignalServiceAccountManager getAccountManager() {
|
||||||
return getOrCreate(() -> accountManager,
|
return getOrCreate(() -> accountManager,
|
||||||
() -> accountManager = new SignalServiceAccountManager(getPushServiceSocket(),
|
() -> accountManager = new SignalServiceAccountManager(getPushServiceSocket(),
|
||||||
|
|
|
@ -104,23 +104,6 @@ public class ContactRecordProcessor extends DefaultStorageRecordProcessor<Signal
|
||||||
profileFamilyName = local.getProfileFamilyName().orElse("");
|
profileFamilyName = local.getProfileFamilyName().orElse("");
|
||||||
}
|
}
|
||||||
|
|
||||||
String nicknameGivenName;
|
|
||||||
String nicknameFamilyName;
|
|
||||||
if (remote.getNicknameGivenName().isPresent()) {
|
|
||||||
nicknameGivenName = remote.getNicknameGivenName().orElse("");
|
|
||||||
nicknameFamilyName = remote.getNicknameFamilyName().orElse("");
|
|
||||||
} else {
|
|
||||||
nicknameGivenName = local.getNicknameGivenName().orElse("");
|
|
||||||
nicknameFamilyName = local.getNicknameFamilyName().orElse("");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nicknameGivenName.isBlank() && !nicknameFamilyName.isBlank()) {
|
|
||||||
logger.debug("Processed invalid nickname. Missing given name.");
|
|
||||||
|
|
||||||
nicknameGivenName = "";
|
|
||||||
nicknameFamilyName = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
IdentityState identityState;
|
IdentityState identityState;
|
||||||
byte[] identityKey;
|
byte[] identityKey;
|
||||||
if (remote.getIdentityKey().isPresent() && (
|
if (remote.getIdentityKey().isPresent() && (
|
||||||
|
@ -197,6 +180,8 @@ public class ContactRecordProcessor extends DefaultStorageRecordProcessor<Signal
|
||||||
? local.getSystemFamilyName().orElse("")
|
? local.getSystemFamilyName().orElse("")
|
||||||
: remote.getSystemFamilyName().orElse("");
|
: remote.getSystemFamilyName().orElse("");
|
||||||
final var systemNickname = remote.getSystemNickname().orElse("");
|
final var systemNickname = remote.getSystemNickname().orElse("");
|
||||||
|
final var nicknameGivenName = remote.getNicknameGivenName().orElse("");
|
||||||
|
final var nicknameFamilyName = remote.getNicknameFamilyName().orElse("");
|
||||||
final var pniSignatureVerified = remote.isPniSignatureVerified() || local.isPniSignatureVerified();
|
final var pniSignatureVerified = remote.isPniSignatureVerified() || local.isPniSignatureVerified();
|
||||||
final var note = remote.getNote().or(local::getNote).orElse("");
|
final var note = remote.getNote().or(local::getNote).orElse("");
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ dependencyResolutionManagement {
|
||||||
|
|
||||||
versionCatalogs {
|
versionCatalogs {
|
||||||
create("libs") {
|
create("libs") {
|
||||||
library("bouncycastle", "org.bouncycastle", "bcprov-jdk18on").version("1.77")
|
library("bouncycastle", "org.bouncycastle", "bcprov-jdk18on").version("1.78")
|
||||||
library("jackson.databind", "com.fasterxml.jackson.core", "jackson-databind").version("2.17.0")
|
library("jackson.databind", "com.fasterxml.jackson.core", "jackson-databind").version("2.17.0")
|
||||||
library("argparse4j", "net.sourceforge.argparse4j", "argparse4j").version("0.9.0")
|
library("argparse4j", "net.sourceforge.argparse4j", "argparse4j").version("0.9.0")
|
||||||
library("dbusjava", "com.github.hypfvieh", "dbus-java-transport-native-unixsocket").version("5.0.0")
|
library("dbusjava", "com.github.hypfvieh", "dbus-java-transport-native-unixsocket").version("5.0.0")
|
||||||
|
@ -15,7 +15,7 @@ dependencyResolutionManagement {
|
||||||
library("slf4j.jul", "org.slf4j", "jul-to-slf4j").versionRef("slf4j")
|
library("slf4j.jul", "org.slf4j", "jul-to-slf4j").versionRef("slf4j")
|
||||||
library("logback", "ch.qos.logback", "logback-classic").version("1.5.3")
|
library("logback", "ch.qos.logback", "logback-classic").version("1.5.3")
|
||||||
|
|
||||||
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_99")
|
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_100")
|
||||||
library("sqlite", "org.xerial", "sqlite-jdbc").version("3.45.2.0")
|
library("sqlite", "org.xerial", "sqlite-jdbc").version("3.45.2.0")
|
||||||
library("hikari", "com.zaxxer", "HikariCP").version("5.1.0")
|
library("hikari", "com.zaxxer", "HikariCP").version("5.1.0")
|
||||||
library("junit.jupiter", "org.junit.jupiter", "junit-jupiter").version("5.10.2")
|
library("junit.jupiter", "org.junit.jupiter", "junit-jupiter").version("5.10.2")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue