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
|
@ -20,7 +20,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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 'org.bouncycastle:bcprov-jdk15on:1.60'
|
||||||
compile 'net.sourceforge.argparse4j:argparse4j:0.8.1'
|
compile 'net.sourceforge.argparse4j:argparse4j:0.8.1'
|
||||||
compile 'org.freedesktop.dbus:dbus-java:2.7.0'
|
compile 'org.freedesktop.dbus:dbus-java:2.7.0'
|
||||||
|
|
|
@ -188,10 +188,11 @@ public class Manager implements Signal {
|
||||||
account.setPassword(KeyUtils.createPassword());
|
account.setPassword(KeyUtils.createPassword());
|
||||||
accountManager = new SignalServiceAccountManager(BaseConfig.serviceConfiguration, account.getUsername(), account.getPassword(), BaseConfig.USER_AGENT, timer);
|
accountManager = new SignalServiceAccountManager(BaseConfig.serviceConfiguration, account.getUsername(), account.getPassword(), BaseConfig.USER_AGENT, timer);
|
||||||
|
|
||||||
if (voiceVerification)
|
if (voiceVerification) {
|
||||||
accountManager.requestVoiceVerificationCode(Locale.getDefault());
|
accountManager.requestVoiceVerificationCode(Locale.getDefault());
|
||||||
else
|
} else {
|
||||||
accountManager.requestSmsVerificationCode();
|
accountManager.requestSmsVerificationCode(false);
|
||||||
|
}
|
||||||
|
|
||||||
account.setRegistered(false);
|
account.setRegistered(false);
|
||||||
account.save();
|
account.save();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue