mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Update signal-service-java
This commit is contained in:
parent
51c130b406
commit
f3878c54a6
2 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue