Update signal-service-java

This commit is contained in:
AsamK 2018-12-16 21:14:00 +01:00
parent 51c130b406
commit f3878c54a6
2 changed files with 5 additions and 4 deletions

View file

@ -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'

View file

@ -188,10 +188,11 @@ public class Manager implements Signal {
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();