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
d2251ccd14
commit
842f13b2fc
3 changed files with 41 additions and 25 deletions
|
@ -345,29 +345,41 @@ public class SendHelper {
|
||||||
},
|
},
|
||||||
() -> false,
|
() -> false,
|
||||||
urgent);
|
urgent);
|
||||||
final SenderKeySenderHandler senderKeySender = (distId, recipients, unidentifiedAccess, isRecipientUpdate) -> {
|
final SenderKeySenderHandler senderKeySender = (distId, recipients, unidentifiedAccess, isRecipientUpdate) -> messageSender.sendGroupDataMessage(
|
||||||
final var res = messageSender.sendGroupDataMessage(distId,
|
distId,
|
||||||
recipients,
|
recipients,
|
||||||
unidentifiedAccess,
|
unidentifiedAccess,
|
||||||
isRecipientUpdate,
|
isRecipientUpdate,
|
||||||
contentHint,
|
contentHint,
|
||||||
message,
|
message,
|
||||||
SignalServiceMessageSender.SenderKeyGroupEvents.EMPTY,
|
SignalServiceMessageSender.SenderKeyGroupEvents.EMPTY,
|
||||||
urgent,
|
urgent,
|
||||||
false);
|
false,
|
||||||
synchronized (entryId) {
|
sendResult -> {
|
||||||
if (entryId.get() == -1) {
|
logger.trace("Partial message send results: {}", sendResult.size());
|
||||||
final var newId = messageSendLogStore.insertIfPossible(message.getTimestamp(),
|
synchronized (entryId) {
|
||||||
res,
|
if (entryId.get() == -1) {
|
||||||
contentHint,
|
final var newId = messageSendLogStore.insertIfPossible(message.getTimestamp(),
|
||||||
urgent);
|
sendResult,
|
||||||
entryId.set(newId);
|
contentHint,
|
||||||
} else {
|
urgent);
|
||||||
messageSendLogStore.addRecipientToExistingEntryIfPossible(entryId.get(), res);
|
entryId.set(newId);
|
||||||
}
|
} else {
|
||||||
}
|
messageSendLogStore.addRecipientToExistingEntryIfPossible(entryId.get(), sendResult);
|
||||||
return res;
|
}
|
||||||
};
|
}
|
||||||
|
synchronized (entryId) {
|
||||||
|
if (entryId.get() == -1) {
|
||||||
|
final var newId = messageSendLogStore.insertIfPossible(message.getTimestamp(),
|
||||||
|
sendResult,
|
||||||
|
contentHint,
|
||||||
|
urgent);
|
||||||
|
entryId.set(newId);
|
||||||
|
} else {
|
||||||
|
messageSendLogStore.addRecipientToExistingEntryIfPossible(entryId.get(), sendResult);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
final var results = sendGroupMessageInternal(legacySender, senderKeySender, recipientIds, distributionId);
|
final var results = sendGroupMessageInternal(legacySender, senderKeySender, recipientIds, distributionId);
|
||||||
|
|
||||||
for (var r : results) {
|
for (var r : results) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ dependencyResolutionManagement {
|
||||||
library("logback", "ch.qos.logback", "logback-classic").version("1.4.6")
|
library("logback", "ch.qos.logback", "logback-classic").version("1.4.6")
|
||||||
|
|
||||||
|
|
||||||
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_68")
|
library("signalservice", "com.github.turasa", "signal-service-java").version("2.15.3_unofficial_69")
|
||||||
library("protobuf", "com.google.protobuf", "protobuf-javalite").version("3.22.2")
|
library("protobuf", "com.google.protobuf", "protobuf-javalite").version("3.22.2")
|
||||||
library("sqlite", "org.xerial", "sqlite-jdbc").version("3.41.2.1")
|
library("sqlite", "org.xerial", "sqlite-jdbc").version("3.41.2.1")
|
||||||
library("hikari", "com.zaxxer", "HikariCP").version("5.0.1")
|
library("hikari", "com.zaxxer", "HikariCP").version("5.0.1")
|
||||||
|
|
|
@ -55,7 +55,11 @@ public class FinishLinkCommand implements JsonRpcMultiCommand<FinishLinkCommand.
|
||||||
} catch (TimeoutException e) {
|
} catch (TimeoutException e) {
|
||||||
throw new UserErrorException("Link request timed out, please try again.");
|
throw new UserErrorException("Link request timed out, please try again.");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new IOErrorException("Link request error: " + e.getMessage(), e);
|
throw new IOErrorException("Link request error: "
|
||||||
|
+ e.getMessage()
|
||||||
|
+ " ("
|
||||||
|
+ e.getClass().getSimpleName()
|
||||||
|
+ ")", e);
|
||||||
} catch (UserAlreadyExistsException e) {
|
} catch (UserAlreadyExistsException e) {
|
||||||
throw new UserErrorException("The user "
|
throw new UserErrorException("The user "
|
||||||
+ e.getNumber()
|
+ e.getNumber()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue