mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue