Implement fetch messages

Uses a patched libtextsecure-java
https://github.com/AsamK/libtextsecure-java/commits/master
This commit is contained in:
AsamK 2015-12-31 13:17:41 +01:00
parent 239afa07e8
commit 43ec78594c
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ repositories {
} }
dependencies { 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 'com.madgag.spongycastle:prov:1.54.0.0'
compile 'commons-io:commons-io:2.4' compile 'commons-io:commons-io:2.4'
compile 'net.sourceforge.argparse4j:argparse4j:0.7.0' compile 'net.sourceforge.argparse4j:argparse4j:0.7.0'

View file

@ -239,7 +239,7 @@ class Manager implements TextSecure {
public void verifyAccount(String verificationCode) throws IOException { public void verifyAccount(String verificationCode) throws IOException {
verificationCode = verificationCode.replace("-", ""); verificationCode = verificationCode.replace("-", "");
signalingKey = Util.getSecret(52); 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))); //accountManager.setGcmId(Optional.of(GoogleCloudMessaging.getInstance(this).register(REGISTRATION_ID)));
registered = true; registered = true;