mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-26 02:24:21 +01:00
Add --voice / -v option for voice call verification
This commit is contained in:
@@ -117,12 +117,16 @@ public class Manager {
|
||||
return registered;
|
||||
}
|
||||
|
||||
public void register() throws IOException {
|
||||
public void register(boolean voiceVerication) throws IOException {
|
||||
password = Util.getSecret(18);
|
||||
|
||||
accountManager = new TextSecureAccountManager(URL, TRUST_STORE, username, password);
|
||||
|
||||
accountManager.requestSmsVerificationCode();
|
||||
if (voiceVerication)
|
||||
accountManager.requestVoiceVerificationCode();
|
||||
else
|
||||
accountManager.requestSmsVerificationCode();
|
||||
|
||||
registered = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user