Update libsignal-service-java

This commit is contained in:
AsamK 2022-07-16 15:17:48 +02:00
parent ed7d023581
commit de583475f9
3 changed files with 5 additions and 4 deletions

View file

@ -14,7 +14,7 @@ repositories {
} }
dependencies { dependencies {
implementation("com.github.turasa", "signal-service-java", "2.15.3_unofficial_50") implementation("com.github.turasa", "signal-service-java", "2.15.3_unofficial_51")
implementation("com.fasterxml.jackson.core", "jackson-databind", "2.13.3") implementation("com.fasterxml.jackson.core", "jackson-databind", "2.13.3")
implementation("com.google.protobuf", "protobuf-javalite", "3.11.4") implementation("com.google.protobuf", "protobuf-javalite", "3.11.4")
implementation("org.bouncycastle", "bcprov-jdk15on", "1.70") implementation("org.bouncycastle", "bcprov-jdk15on", "1.70")

View file

@ -564,7 +564,8 @@ class ManagerImpl implements Manager {
final var quote = message.quote().get(); final var quote = message.quote().get();
messageBuilder.withQuote(new SignalServiceDataMessage.Quote(quote.timestamp(), messageBuilder.withQuote(new SignalServiceDataMessage.Quote(quote.timestamp(),
context.getRecipientHelper() context.getRecipientHelper()
.resolveSignalServiceAddress(context.getRecipientHelper().resolveRecipient(quote.author())), .resolveSignalServiceAddress(context.getRecipientHelper().resolveRecipient(quote.author()))
.getServiceId(),
quote.message(), quote.message(),
List.of(), List.of(),
resolveMentions(quote.mentions()), resolveMentions(quote.mentions()),
@ -651,7 +652,7 @@ class ManagerImpl implements Manager {
var targetAuthorRecipientId = context.getRecipientHelper().resolveRecipient(targetAuthor); var targetAuthorRecipientId = context.getRecipientHelper().resolveRecipient(targetAuthor);
var reaction = new SignalServiceDataMessage.Reaction(emoji, var reaction = new SignalServiceDataMessage.Reaction(emoji,
remove, remove,
context.getRecipientHelper().resolveSignalServiceAddress(targetAuthorRecipientId), context.getRecipientHelper().resolveSignalServiceAddress(targetAuthorRecipientId).getServiceId(),
targetSentTimestamp); targetSentTimestamp);
final var messageBuilder = SignalServiceDataMessage.newBuilder().withReaction(reaction); final var messageBuilder = SignalServiceDataMessage.newBuilder().withReaction(reaction);
return sendMessage(messageBuilder, recipients); return sendMessage(messageBuilder, recipients);

View file

@ -633,7 +633,7 @@ public class SendHelper {
message.getTimestamp(), message.getTimestamp(),
Optional.of(message), Optional.of(message),
message.getExpiresInSeconds(), message.getExpiresInSeconds(),
Map.of(address, true), Map.of(address.getServiceId(), true),
false, false,
Optional.empty(), Optional.empty(),
Set.of()); Set.of());