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

@ -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();