mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Update libsignal-service
This commit is contained in:
parent
86f50e0355
commit
409a707baa
6 changed files with 23 additions and 19 deletions
|
@ -2577,7 +2577,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$DataMessage$Quote",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$DataMessage$Quote",
|
||||||
"fields":[{"name":"attachments_"}, {"name":"authorUuid_"}, {"name":"bitField0_"}, {"name":"bodyRanges_"}, {"name":"id_"}, {"name":"text_"}, {"name":"type_"}]
|
"fields":[{"name":"attachments_"}, {"name":"authorAci_"}, {"name":"authorUuid_"}, {"name":"bitField0_"}, {"name":"bodyRanges_"}, {"name":"id_"}, {"name":"text_"}, {"name":"type_"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$DataMessage$Quote$QuotedAttachment",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$DataMessage$Quote$QuotedAttachment",
|
||||||
|
@ -2585,7 +2585,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$DataMessage$Reaction",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$DataMessage$Reaction",
|
||||||
"fields":[{"name":"bitField0_"}, {"name":"emoji_"}, {"name":"remove_"}, {"name":"targetAuthorUuid_"}, {"name":"targetSentTimestamp_"}]
|
"fields":[{"name":"bitField0_"}, {"name":"emoji_"}, {"name":"remove_"}, {"name":"targetAuthorAci_"}, {"name":"targetAuthorUuid_"}, {"name":"targetSentTimestamp_"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$DataMessage$Sticker",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$DataMessage$Sticker",
|
||||||
|
@ -2601,7 +2601,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$Envelope",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$Envelope",
|
||||||
"fields":[{"name":"bitField0_"}, {"name":"content_"}, {"name":"destinationUuid_"}, {"name":"reportingToken_"}, {"name":"serverGuid_"}, {"name":"serverTimestamp_"}, {"name":"sourceDevice_"}, {"name":"sourceUuid_"}, {"name":"story_"}, {"name":"timestamp_"}, {"name":"type_"}, {"name":"updatedPni_"}, {"name":"urgent_"}]
|
"fields":[{"name":"bitField0_"}, {"name":"content_"}, {"name":"destinationServiceId_"}, {"name":"destinationUuid_"}, {"name":"reportingToken_"}, {"name":"serverGuid_"}, {"name":"serverTimestamp_"}, {"name":"sourceDevice_"}, {"name":"sourceServiceId_"}, {"name":"sourceUuid_"}, {"name":"story_"}, {"name":"timestamp_"}, {"name":"type_"}, {"name":"updatedPni_"}, {"name":"urgent_"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$GroupContext",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$GroupContext",
|
||||||
|
@ -2657,7 +2657,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage",
|
||||||
"fields":[{"name":"bitField0_"}, {"name":"blocked_"}, {"name":"callEvent_"}, {"name":"callLinkUpdate_"}, {"name":"configuration_"}, {"name":"contacts_"}, {"name":"fetchLatest_"}, {"name":"groups_"}, {"name":"keys_"}, {"name":"messageRequestResponse_"}, {"name":"outgoingPayment_"}, {"name":"padding_"}, {"name":"pniChangeNumber_"}, {"name":"read_"}, {"name":"request_"}, {"name":"sent_"}, {"name":"stickerPackOperation_"}, {"name":"verified_"}, {"name":"viewOnceOpen_"}, {"name":"viewed_"}]
|
"fields":[{"name":"bitField0_"}, {"name":"blocked_"}, {"name":"callEvent_"}, {"name":"callLinkUpdate_"}, {"name":"callLogEvent_"}, {"name":"configuration_"}, {"name":"contacts_"}, {"name":"fetchLatest_"}, {"name":"groups_"}, {"name":"keys_"}, {"name":"messageRequestResponse_"}, {"name":"outgoingPayment_"}, {"name":"padding_"}, {"name":"pniChangeNumber_"}, {"name":"read_"}, {"name":"request_"}, {"name":"sent_"}, {"name":"stickerPackOperation_"}, {"name":"verified_"}, {"name":"viewOnceOpen_"}, {"name":"viewed_"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Blocked",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Blocked",
|
||||||
|
@ -2701,7 +2701,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Read",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Read",
|
||||||
"fields":[{"name":"bitField0_"}, {"name":"senderUuid_"}, {"name":"timestamp_"}]
|
"fields":[{"name":"bitField0_"}, {"name":"senderAci_"}, {"name":"senderUuid_"}, {"name":"timestamp_"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Request",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Request",
|
||||||
|
@ -2709,7 +2709,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Sent",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Sent",
|
||||||
"fields":[{"name":"bitField0_"}, {"name":"destinationE164_"}, {"name":"destinationUuid_"}, {"name":"editMessage_"}, {"name":"expirationStartTimestamp_"}, {"name":"isRecipientUpdate_"}, {"name":"message_"}, {"name":"storyMessageRecipients_"}, {"name":"storyMessage_"}, {"name":"timestamp_"}, {"name":"unidentifiedStatus_"}]
|
"fields":[{"name":"bitField0_"}, {"name":"destinationE164_"}, {"name":"destinationServiceId_"}, {"name":"destinationUuid_"}, {"name":"editMessage_"}, {"name":"expirationStartTimestamp_"}, {"name":"isRecipientUpdate_"}, {"name":"message_"}, {"name":"storyMessageRecipients_"}, {"name":"storyMessage_"}, {"name":"timestamp_"}, {"name":"unidentifiedStatus_"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Sent$StoryMessageRecipient",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Sent$StoryMessageRecipient",
|
||||||
|
@ -2717,7 +2717,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Sent$UnidentifiedDeliveryStatus",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$Sent$UnidentifiedDeliveryStatus",
|
||||||
"fields":[{"name":"bitField0_"}, {"name":"destinationUuid_"}, {"name":"unidentified_"}]
|
"fields":[{"name":"bitField0_"}, {"name":"destinationServiceId_"}, {"name":"destinationUuid_"}, {"name":"unidentified_"}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$StickerPackOperation",
|
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$SyncMessage$StickerPackOperation",
|
||||||
|
|
|
@ -708,7 +708,9 @@ public record MessageEnvelope(
|
||||||
Optional<Hangup> hangup,
|
Optional<Hangup> hangup,
|
||||||
Optional<Busy> busy,
|
Optional<Busy> busy,
|
||||||
List<IceUpdate> iceUpdate,
|
List<IceUpdate> iceUpdate,
|
||||||
Optional<Opaque> opaque
|
Optional<Opaque> opaque,
|
||||||
|
boolean isMultiRing,
|
||||||
|
boolean isUrgent
|
||||||
) {
|
) {
|
||||||
|
|
||||||
public static Call from(final SignalServiceCallMessage callMessage) {
|
public static Call from(final SignalServiceCallMessage callMessage) {
|
||||||
|
@ -722,7 +724,9 @@ public record MessageEnvelope(
|
||||||
callMessage.getIceUpdateMessages()
|
callMessage.getIceUpdateMessages()
|
||||||
.map(m -> m.stream().map(IceUpdate::from).toList())
|
.map(m -> m.stream().map(IceUpdate::from).toList())
|
||||||
.orElse(List.of()),
|
.orElse(List.of()),
|
||||||
callMessage.getOpaqueMessage().map(Opaque::from));
|
callMessage.getOpaqueMessage().map(Opaque::from),
|
||||||
|
callMessage.isMultiRing(),
|
||||||
|
callMessage.isUrgent());
|
||||||
}
|
}
|
||||||
|
|
||||||
public record Offer(long id, String sdp, Type type, byte[] opaque) {
|
public record Offer(long id, String sdp, Type type, byte[] opaque) {
|
||||||
|
@ -895,7 +899,7 @@ public record MessageEnvelope(
|
||||||
final AttachmentFileProvider fileProvider,
|
final AttachmentFileProvider fileProvider,
|
||||||
Exception exception
|
Exception exception
|
||||||
) {
|
) {
|
||||||
final var source = !envelope.isUnidentifiedSender() && envelope.hasSourceUuid()
|
final var source = !envelope.isUnidentifiedSender() && envelope.hasSourceServiceId()
|
||||||
? recipientResolver.resolveRecipient(envelope.getSourceAddress())
|
? recipientResolver.resolveRecipient(envelope.getSourceAddress())
|
||||||
: envelope.isUnidentifiedSender() && content != null
|
: envelope.isUnidentifiedSender() && content != null
|
||||||
? recipientResolver.resolveRecipient(content.getSender())
|
? recipientResolver.resolveRecipient(content.getSender())
|
||||||
|
|
|
@ -137,7 +137,7 @@ public final class IncomingMessageHandler {
|
||||||
final Manager.ReceiveMessageHandler handler
|
final Manager.ReceiveMessageHandler handler
|
||||||
) {
|
) {
|
||||||
final var actions = new ArrayList<HandleAction>();
|
final var actions = new ArrayList<HandleAction>();
|
||||||
if (envelope.hasSourceUuid()) {
|
if (envelope.hasSourceServiceId()) {
|
||||||
// Store uuid if we don't have it already
|
// Store uuid if we don't have it already
|
||||||
// address/uuid in envelope is sent by server
|
// address/uuid in envelope is sent by server
|
||||||
account.getRecipientTrustedResolver().resolveRecipientTrusted(envelope.getSourceAddress());
|
account.getRecipientTrustedResolver().resolveRecipientTrusted(envelope.getSourceAddress());
|
||||||
|
@ -960,7 +960,7 @@ public final class IncomingMessageHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
private SignalServiceAddress getSenderAddress(SignalServiceEnvelope envelope, SignalServiceContent content) {
|
private SignalServiceAddress getSenderAddress(SignalServiceEnvelope envelope, SignalServiceContent content) {
|
||||||
if (!envelope.isUnidentifiedSender() && envelope.hasSourceUuid()) {
|
if (!envelope.isUnidentifiedSender() && envelope.hasSourceServiceId()) {
|
||||||
return envelope.getSourceAddress();
|
return envelope.getSourceAddress();
|
||||||
} else if (content != null) {
|
} else if (content != null) {
|
||||||
return content.getSender();
|
return content.getSender();
|
||||||
|
@ -970,7 +970,7 @@ public final class IncomingMessageHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
private DeviceAddress getSender(SignalServiceEnvelope envelope, SignalServiceContent content) {
|
private DeviceAddress getSender(SignalServiceEnvelope envelope, SignalServiceContent content) {
|
||||||
if (!envelope.isUnidentifiedSender() && envelope.hasSourceUuid()) {
|
if (!envelope.isUnidentifiedSender() && envelope.hasSourceServiceId()) {
|
||||||
return new DeviceAddress(context.getRecipientHelper().resolveRecipient(envelope.getSourceAddress()),
|
return new DeviceAddress(context.getRecipientHelper().resolveRecipient(envelope.getSourceAddress()),
|
||||||
envelope.getSourceAddress().getServiceId(),
|
envelope.getSourceAddress().getServiceId(),
|
||||||
envelope.getSourceDevice());
|
envelope.getSourceDevice());
|
||||||
|
@ -985,7 +985,7 @@ public final class IncomingMessageHandler {
|
||||||
if (!envelope.hasDestinationUuid()) {
|
if (!envelope.hasDestinationUuid()) {
|
||||||
return new DeviceAddress(account.getSelfRecipientId(), account.getAci(), account.getDeviceId());
|
return new DeviceAddress(account.getSelfRecipientId(), account.getAci(), account.getDeviceId());
|
||||||
}
|
}
|
||||||
final var addressOptional = SignalServiceAddress.fromRaw(envelope.getDestinationUuid(), null);
|
final var addressOptional = SignalServiceAddress.fromRaw(envelope.getDestinationServiceId(), null);
|
||||||
if (addressOptional.isEmpty()) {
|
if (addressOptional.isEmpty()) {
|
||||||
return new DeviceAddress(account.getSelfRecipientId(), account.getAci(), account.getDeviceId());
|
return new DeviceAddress(account.getSelfRecipientId(), account.getAci(), account.getDeviceId());
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,7 @@ public class ReceiveHelper {
|
||||||
for (final var it : batch) {
|
for (final var it : batch) {
|
||||||
SignalServiceEnvelope envelope1 = new SignalServiceEnvelope(it.getEnvelope(),
|
SignalServiceEnvelope envelope1 = new SignalServiceEnvelope(it.getEnvelope(),
|
||||||
it.getServerDeliveredTimestamp());
|
it.getServerDeliveredTimestamp());
|
||||||
final var recipientId = envelope1.hasSourceUuid() ? account.getRecipientResolver()
|
final var recipientId = envelope1.hasSourceServiceId() ? account.getRecipientResolver()
|
||||||
.resolveRecipient(envelope1.getSourceAddress()) : null;
|
.resolveRecipient(envelope1.getSourceAddress()) : null;
|
||||||
logger.trace("Storing new message from {}", recipientId);
|
logger.trace("Storing new message from {}", recipientId);
|
||||||
// store message on disk, before acknowledging receipt to the server
|
// store message on disk, before acknowledging receipt to the server
|
||||||
|
@ -226,7 +226,7 @@ public class ReceiveHelper {
|
||||||
if (exception instanceof UntrustedIdentityException) {
|
if (exception instanceof UntrustedIdentityException) {
|
||||||
logger.debug("Keeping message with untrusted identity in message cache");
|
logger.debug("Keeping message with untrusted identity in message cache");
|
||||||
final var address = ((UntrustedIdentityException) exception).getSender();
|
final var address = ((UntrustedIdentityException) exception).getSender();
|
||||||
if (!envelope.hasSourceUuid() && address.uuid().isPresent()) {
|
if (!envelope.hasSourceServiceId() && address.uuid().isPresent()) {
|
||||||
final var recipientId = account.getRecipientResolver()
|
final var recipientId = account.getRecipientResolver()
|
||||||
.resolveRecipient(ServiceId.from(address.uuid().get()));
|
.resolveRecipient(ServiceId.from(address.uuid().get()));
|
||||||
try {
|
try {
|
||||||
|
@ -273,7 +273,7 @@ public class ReceiveHelper {
|
||||||
cachedMessage.delete();
|
cachedMessage.delete();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (!envelope.hasSourceUuid()) {
|
if (!envelope.hasSourceServiceId()) {
|
||||||
final var identifier = ((UntrustedIdentityException) exception).getSender();
|
final var identifier = ((UntrustedIdentityException) exception).getSender();
|
||||||
final var recipientId = account.getRecipientResolver()
|
final var recipientId = account.getRecipientResolver()
|
||||||
.resolveRecipient(new RecipientAddress(identifier));
|
.resolveRecipient(new RecipientAddress(identifier));
|
||||||
|
|
|
@ -25,7 +25,7 @@ final class SignalWebSocketHealthMonitor implements HealthMonitor {
|
||||||
|
|
||||||
private final static Logger logger = LoggerFactory.getLogger(SignalWebSocketHealthMonitor.class);
|
private final static Logger logger = LoggerFactory.getLogger(SignalWebSocketHealthMonitor.class);
|
||||||
|
|
||||||
private static final long KEEP_ALIVE_SEND_CADENCE = TimeUnit.SECONDS.toMillis(WebSocketConnection.KEEPALIVE_TIMEOUT_SECONDS);
|
private static final long KEEP_ALIVE_SEND_CADENCE = TimeUnit.SECONDS.toMillis(WebSocketConnection.KEEPALIVE_FREQUENCY_SECONDS);
|
||||||
private static final long MAX_TIME_SINCE_SUCCESSFUL_KEEP_ALIVE = KEEP_ALIVE_SEND_CADENCE * 3;
|
private static final long MAX_TIME_SINCE_SUCCESSFUL_KEEP_ALIVE = KEEP_ALIVE_SEND_CADENCE * 3;
|
||||||
|
|
||||||
private SignalWebSocket signalWebSocket;
|
private SignalWebSocket signalWebSocket;
|
||||||
|
|
|
@ -16,7 +16,7 @@ dependencyResolutionManagement {
|
||||||
library("logback", "ch.qos.logback", "logback-classic").version("1.4.8")
|
library("logback", "ch.qos.logback", "logback-classic").version("1.4.8")
|
||||||
|
|
||||||
|
|
||||||
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_75")
|
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_76")
|
||||||
library("protobuf", "com.google.protobuf", "protobuf-javalite").version("3.23.0")
|
library("protobuf", "com.google.protobuf", "protobuf-javalite").version("3.23.0")
|
||||||
library("sqlite", "org.xerial", "sqlite-jdbc").version("3.42.0.0")
|
library("sqlite", "org.xerial", "sqlite-jdbc").version("3.42.0.0")
|
||||||
library("hikari", "com.zaxxer", "HikariCP").version("5.0.1")
|
library("hikari", "com.zaxxer", "HikariCP").version("5.0.1")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue