mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Update libsignal-service-java
This commit is contained in:
parent
e9caf21bd3
commit
c3f0539526
6 changed files with 6 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
**Attention**: Now requires Java 17 and libsignal-client version 0.10
|
**Attention**: Now requires Java 17 and libsignal-client version 0.11
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- The daemon command now provides a JSON-RPC based socket interface (`--socket` and `--tcp`)
|
- The daemon command now provides a JSON-RPC based socket interface (`--socket` and `--tcp`)
|
||||||
|
|
|
@ -14,7 +14,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("com.github.turasa", "signal-service-java", "2.15.3_unofficial_34")
|
implementation("com.github.turasa", "signal-service-java", "2.15.3_unofficial_35")
|
||||||
implementation("com.fasterxml.jackson.core", "jackson-databind", "2.13.0")
|
implementation("com.fasterxml.jackson.core", "jackson-databind", "2.13.0")
|
||||||
implementation("com.google.protobuf", "protobuf-javalite", "3.11.4")
|
implementation("com.google.protobuf", "protobuf-javalite", "3.11.4")
|
||||||
implementation("org.bouncycastle", "bcprov-jdk15on", "1.69")
|
implementation("org.bouncycastle", "bcprov-jdk15on", "1.69")
|
||||||
|
|
|
@ -275,7 +275,7 @@ public class ManagerImpl implements Manager {
|
||||||
try {
|
try {
|
||||||
preKeyHelper.refreshPreKeysIfNecessary();
|
preKeyHelper.refreshPreKeysIfNecessary();
|
||||||
if (account.getAci() == null) {
|
if (account.getAci() == null) {
|
||||||
account.setAci(dependencies.getAccountManager().getOwnAci());
|
account.setAci(ACI.parseOrNull(dependencies.getAccountManager().getWhoAmI().getAci()));
|
||||||
}
|
}
|
||||||
updateAccountAttributes(null);
|
updateAccountAttributes(null);
|
||||||
} catch (AuthorizationFailedException e) {
|
} catch (AuthorizationFailedException e) {
|
||||||
|
|
|
@ -46,7 +46,7 @@ class LiveConfig {
|
||||||
private final static Optional<SignalProxy> proxy = Optional.absent();
|
private final static Optional<SignalProxy> proxy = Optional.absent();
|
||||||
|
|
||||||
private final static byte[] zkGroupServerPublicParams = Base64.getDecoder()
|
private final static byte[] zkGroupServerPublicParams = Base64.getDecoder()
|
||||||
.decode("AMhf5ywVwITZMsff/eCyudZx9JDmkkkbV6PInzG4p8x3VqVJSFiMvnvlEKWuRob/1eaIetR31IYeAbm0NdOuHH8Qi+Rexi1wLlpzIo1gstHWBfZzy1+qHRV5A4TqPp15YzBPm0WSggW6PbSn+F4lf57VCnHF7p8SvzAA2ZZJPYJURt8X7bbg+H3i+PEjH9DXItNEqs2sNcug37xZQDLm7X36nOoGPs54XsEGzPdEV+itQNGUFEjY6X9Uv+Acuks7NpyGvCoKxGwgKgE5XyJ+nNKlyHHOLb6N1NuHyBrZrgtY");
|
.decode("AMhf5ywVwITZMsff/eCyudZx9JDmkkkbV6PInzG4p8x3VqVJSFiMvnvlEKWuRob/1eaIetR31IYeAbm0NdOuHH8Qi+Rexi1wLlpzIo1gstHWBfZzy1+qHRV5A4TqPp15YzBPm0WSggW6PbSn+F4lf57VCnHF7p8SvzAA2ZZJPYJURt8X7bbg+H3i+PEjH9DXItNEqs2sNcug37xZQDLm7X36nOoGPs54XsEGzPdEV+itQNGUFEjY6X9Uv+Acuks7NpyGvCoKxGwgKgE5XyJ+nNKlyHHOLb6N1NuHyBrZrgtY/JYJHRooo5CEqYKBqdFnmbTVGEkCvJKxLnjwKWf+fEPoWeQFj5ObDjcKMZf2Jm2Ae69x+ikU5gBXsRmoF94GXQ==");
|
||||||
|
|
||||||
static SignalServiceConfiguration createDefaultServiceConfiguration(
|
static SignalServiceConfiguration createDefaultServiceConfiguration(
|
||||||
final List<Interceptor> interceptors
|
final List<Interceptor> interceptors
|
||||||
|
|
|
@ -46,7 +46,7 @@ class SandboxConfig {
|
||||||
private final static Optional<SignalProxy> proxy = Optional.absent();
|
private final static Optional<SignalProxy> proxy = Optional.absent();
|
||||||
|
|
||||||
private final static byte[] zkGroupServerPublicParams = Base64.getDecoder()
|
private final static byte[] zkGroupServerPublicParams = Base64.getDecoder()
|
||||||
.decode("ABSY21VckQcbSXVNCGRYJcfWHiAMZmpTtTELcDmxgdFbtp/bWsSxZdMKzfCp8rvIs8ocCU3B37fT3r4Mi5qAemeGeR2X+/YmOGR5ofui7tD5mDQfstAI9i+4WpMtIe8KC3wU5w3Inq3uNWVmoGtpKndsNfwJrCg0Hd9zmObhypUnSkfYn2ooMOOnBpfdanRtrvetZUayDMSC5iSRcXKpdlukrpzzsCIvEwjwQlJYVPOQPj4V0F4UXXBdHSLK05uoPBCQG8G9rYIGedYsClJXnbrgGYG3eMTG5hnx4X4ntARB");
|
.decode("ABSY21VckQcbSXVNCGRYJcfWHiAMZmpTtTELcDmxgdFbtp/bWsSxZdMKzfCp8rvIs8ocCU3B37fT3r4Mi5qAemeGeR2X+/YmOGR5ofui7tD5mDQfstAI9i+4WpMtIe8KC3wU5w3Inq3uNWVmoGtpKndsNfwJrCg0Hd9zmObhypUnSkfYn2ooMOOnBpfdanRtrvetZUayDMSC5iSRcXKpdlukrpzzsCIvEwjwQlJYVPOQPj4V0F4UXXBdHSLK05uoPBCQG8G9rYIGedYsClJXnbrgGYG3eMTG5hnx4X4ntARBgELuMWWUEEfSK0mjXg+/2lPmWcTZWR9nkqgQQP0tbzuiPm74H2wMO4u1Wafe+UwyIlIT9L7KLS19Aw8r4sPrXQ==");
|
||||||
|
|
||||||
static SignalServiceConfiguration createDefaultServiceConfiguration(
|
static SignalServiceConfiguration createDefaultServiceConfiguration(
|
||||||
final List<Interceptor> interceptors
|
final List<Interceptor> interceptors
|
||||||
|
|
|
@ -63,7 +63,6 @@ import java.util.Base64;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
public class SignalAccount implements Closeable {
|
public class SignalAccount implements Closeable {
|
||||||
|
|
||||||
|
@ -413,7 +412,7 @@ public class SignalAccount implements Closeable {
|
||||||
registered = Utils.getNotNullNode(rootNode, "registered").asBoolean();
|
registered = Utils.getNotNullNode(rootNode, "registered").asBoolean();
|
||||||
if (rootNode.hasNonNull("uuid")) {
|
if (rootNode.hasNonNull("uuid")) {
|
||||||
try {
|
try {
|
||||||
aci = ACI.from(UUID.fromString(rootNode.get("uuid").asText()));
|
aci = ACI.parseOrThrow(rootNode.get("uuid").asText());
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
throw new IOException("Config file contains an invalid uuid, needs to be a valid UUID", e);
|
throw new IOException("Config file contains an invalid uuid, needs to be a valid UUID", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue