Update dependencies

This commit is contained in:
AsamK 2023-01-27 21:26:00 +01:00
parent a1b16a9118
commit a4f7632981
7 changed files with 24 additions and 7 deletions

View file

@ -588,7 +588,8 @@ class ManagerImpl implements Manager {
quote.message(),
List.of(),
resolveMentions(quote.mentions()),
SignalServiceDataMessage.Quote.Type.NORMAL));
SignalServiceDataMessage.Quote.Type.NORMAL,
List.of()));
}
if (message.sticker().isPresent()) {
final var sticker = message.sticker().get();

View file

@ -71,7 +71,8 @@ class LiveConfig {
interceptors,
dns,
proxy,
zkGroupServerPublicParams);
zkGroupServerPublicParams,
true);
}
static ECPublicKey getUnidentifiedSenderTrustRoot() {

View file

@ -40,6 +40,7 @@ public class ServiceConfig {
true,
true,
false,
false,
false);
try {

View file

@ -71,7 +71,8 @@ class StagingConfig {
interceptors,
dns,
proxy,
zkGroupServerPublicParams);
zkGroupServerPublicParams,
true);
}
static ECPublicKey getUnidentifiedSenderTrustRoot() {

View file

@ -25,13 +25,15 @@ public class NumberVerificationUtils {
) throws IOException, CaptchaRequiredException, NonNormalizedPhoneNumberException {
captcha = captcha == null ? null : captcha.replace("signalcaptcha://", "");
final ServiceResponse<RequestVerificationCodeResponse> response;
final var locale = Utils.getDefaultLocale(Locale.US);
if (voiceVerification) {
response = accountManager.requestVoiceVerificationCode(Utils.getDefaultLocale(Locale.US),
response = accountManager.requestVoiceVerificationCode(locale,
Optional.ofNullable(captcha),
Optional.empty(),
Optional.empty());
} else {
response = accountManager.requestSmsVerificationCode(false,
response = accountManager.requestSmsVerificationCode(locale,
false,
Optional.ofNullable(captcha),
Optional.empty(),
Optional.empty());