Skip to content

Commit

Permalink
Update signal-service-java
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed Dec 16, 2018
1 parent 51c130b commit f3878c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/org/asamk/signal/manager/Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f3878c5

Please sign in to comment.