Update libsignal-service-java

This commit is contained in:
AsamK 2024-03-27 22:54:15 +01:00
parent be0e8ddd8a
commit 17c24b3ff2
10 changed files with 33 additions and 11 deletions

View file

@ -8,7 +8,7 @@ public class BaseConfig {
public static final String PROJECT_VERSION = BaseConfig.class.getPackage().getImplementationVersion();
static final String USER_AGENT_SIGNAL_ANDROID = Optional.ofNullable(System.getenv("SIGNAL_CLI_USER_AGENT"))
.orElse("Signal-Android/7.1.3");
.orElse("Signal-Android/7.2.0");
static final String USER_AGENT_SIGNAL_CLI = PROJECT_NAME == null
? "signal-cli"
: PROJECT_NAME + "/" + PROJECT_VERSION;

View file

@ -91,7 +91,7 @@ public class SendMessageResultUtils {
return String.format(
"CAPTCHA proof required for sending to \"%s\", available options \"%s\" with challenge token \"%s\", or wait \"%d\" seconds.\n"
+ (
failure.getOptions().contains(ProofRequiredException.Option.RECAPTCHA)
failure.getOptions().contains(ProofRequiredException.Option.CAPTCHA)
? """
To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html
After solving the captcha, right-click on the "Open Signal" link and copy the link.