mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-28 18:10:38 +00:00
Update libsignal-service
This commit is contained in:
parent
ed4b1e8f02
commit
bd792f5b7f
4 changed files with 11 additions and 10 deletions
|
@ -481,7 +481,7 @@ public record MessageEnvelope(
|
|||
) {
|
||||
|
||||
static Address from(org.whispersystems.signalservice.api.messages.shared.SharedContact.PostalAddress address) {
|
||||
return new Address(Address.Type.from(address.getType()),
|
||||
return new Address(Type.from(address.getType()),
|
||||
address.getLabel(),
|
||||
address.getStreet(),
|
||||
address.getPobox(),
|
||||
|
@ -690,7 +690,9 @@ public record MessageEnvelope(
|
|||
DELETE,
|
||||
BLOCK,
|
||||
BLOCK_AND_DELETE,
|
||||
UNBLOCK_AND_ACCEPT;
|
||||
UNBLOCK_AND_ACCEPT,
|
||||
SPAM,
|
||||
BLOCK_AND_SPAM;
|
||||
|
||||
static Type from(MessageRequestResponseMessage.Type type) {
|
||||
return switch (type) {
|
||||
|
@ -700,6 +702,8 @@ public record MessageEnvelope(
|
|||
case BLOCK -> BLOCK;
|
||||
case BLOCK_AND_DELETE -> BLOCK_AND_DELETE;
|
||||
case UNBLOCK_AND_ACCEPT -> UNBLOCK_AND_ACCEPT;
|
||||
case SPAM -> SPAM;
|
||||
case BLOCK_AND_SPAM -> BLOCK_AND_SPAM;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ public class RecipientHelper {
|
|||
private Map<String, RegisteredUser> getRegisteredUsers(
|
||||
final Set<String> numbers, final boolean isPartialRefresh
|
||||
) throws IOException {
|
||||
Map<String, RegisteredUser> registeredUsers = getRegisteredUsersV2(numbers, isPartialRefresh, true);
|
||||
Map<String, RegisteredUser> registeredUsers = getRegisteredUsersV2(numbers, isPartialRefresh);
|
||||
|
||||
// Store numbers as recipients, so we have the number/uuid association
|
||||
registeredUsers.forEach((number, u) -> account.getRecipientTrustedResolver()
|
||||
|
@ -186,7 +186,7 @@ public class RecipientHelper {
|
|||
}
|
||||
|
||||
private Map<String, RegisteredUser> getRegisteredUsersV2(
|
||||
final Set<String> numbers, boolean isPartialRefresh, boolean useCompat
|
||||
final Set<String> numbers, boolean isPartialRefresh
|
||||
) throws IOException {
|
||||
final var previousNumbers = isPartialRefresh ? Set.<String>of() : account.getCdsiStore().getAllNumbers();
|
||||
final var newNumbers = new HashSet<>(numbers) {{
|
||||
|
@ -210,7 +210,6 @@ public class RecipientHelper {
|
|||
.getRegisteredUsersWithCdsi(previousNumbers,
|
||||
newNumbers,
|
||||
account.getRecipientStore().getServiceIdToProfileKeyMap(),
|
||||
useCompat,
|
||||
token,
|
||||
serviceEnvironmentConfig.cdsiMrenclave(),
|
||||
null,
|
||||
|
|
|
@ -102,10 +102,8 @@ public class AccountRecordProcessor extends DefaultStorageRecordProcessor<Signal
|
|||
final var storiesDisabled = remote.isStoriesDisabled();
|
||||
final var hasSeenGroupStoryEducation = remote.hasSeenGroupStoryEducationSheet()
|
||||
|| local.hasSeenGroupStoryEducationSheet();
|
||||
final var username = remote.getUsername() != null && !remote.getUsername().isEmpty()
|
||||
? remote.getUsername()
|
||||
: local.getUsername();
|
||||
final var usernameLink = remote.getUsernameLink() != null ? remote.getUsernameLink() : local.getUsernameLink();
|
||||
final var username = remote.getUsername();
|
||||
final var usernameLink = remote.getUsernameLink();
|
||||
|
||||
final var mergedBuilder = new SignalAccountRecord.Builder(remote.getId().getRaw(), unknownFields).setGivenName(
|
||||
givenName)
|
||||
|
|
|
@ -15,7 +15,7 @@ dependencyResolutionManagement {
|
|||
library("slf4j.jul", "org.slf4j", "jul-to-slf4j").versionRef("slf4j")
|
||||
library("logback", "ch.qos.logback", "logback-classic").version("1.4.14")
|
||||
|
||||
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_95")
|
||||
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_96")
|
||||
library("sqlite", "org.xerial", "sqlite-jdbc").version("3.45.1.0")
|
||||
library("hikari", "com.zaxxer", "HikariCP").version("5.1.0")
|
||||
library("junit.jupiter", "org.junit.jupiter", "junit-jupiter").version("5.10.2")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue