Uses a patched libtextsecure-java
https://github.com/AsamK/libtextsecure-java/commits/master
}
dependencies {
- compile 'org.whispersystems:textsecure-java:1.8.3'
+ compile 'org.whispersystems:textsecure-java:1.8.3fetchMessages'
compile 'com.madgag.spongycastle:prov:1.54.0.0'
compile 'commons-io:commons-io:2.4'
compile 'net.sourceforge.argparse4j:argparse4j:0.7.0'
public void verifyAccount(String verificationCode) throws IOException {
verificationCode = verificationCode.replace("-", "");
signalingKey = Util.getSecret(52);
- accountManager.verifyAccountWithCode(verificationCode, signalingKey, axolotlStore.getLocalRegistrationId(), false);
+ accountManager.verifyAccountWithCode(verificationCode, signalingKey, axolotlStore.getLocalRegistrationId(), false, true);
//accountManager.setGcmId(Optional.of(GoogleCloudMessaging.getInstance(this).register(REGISTRATION_ID)));
registered = true;