From f3878c54a627d278e503de1f4497a86f76519bc8 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sun, 16 Dec 2018 21:14:00 +0100 Subject: [PATCH] Update signal-service-java --- build.gradle | 2 +- src/main/java/org/asamk/signal/manager/Manager.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 73823ba273..c96f6339ad 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ repositories { } dependencies { - compile 'com.github.turasa:signal-service-java:2.12.3_unofficial_1' + compile 'com.github.turasa:signal-service-java:2.12.4_unofficial_1' compile 'org.bouncycastle:bcprov-jdk15on:1.60' compile 'net.sourceforge.argparse4j:argparse4j:0.8.1' compile 'org.freedesktop.dbus:dbus-java:2.7.0' diff --git a/src/main/java/org/asamk/signal/manager/Manager.java b/src/main/java/org/asamk/signal/manager/Manager.java index 8bfdff08a8..44ec6445f8 100644 --- a/src/main/java/org/asamk/signal/manager/Manager.java +++ b/src/main/java/org/asamk/signal/manager/Manager.java @@ -188,10 +188,11 @@ public void register(boolean voiceVerification) throws IOException { account.setPassword(KeyUtils.createPassword()); accountManager = new SignalServiceAccountManager(BaseConfig.serviceConfiguration, account.getUsername(), account.getPassword(), BaseConfig.USER_AGENT, timer); - if (voiceVerification) + if (voiceVerification) { accountManager.requestVoiceVerificationCode(Locale.getDefault()); - else - accountManager.requestSmsVerificationCode(); + } else { + accountManager.requestSmsVerificationCode(false); + } account.setRegistered(false); account.save();