]> nmode's Git Repositories - signal-cli/commitdiff
Implement fetch messages
authorAsamK <asamk@gmx.de>
Thu, 31 Dec 2015 12:17:41 +0000 (13:17 +0100)
committerAsamK <asamk@gmx.de>
Thu, 31 Dec 2015 12:17:41 +0000 (13:17 +0100)
Uses a patched libtextsecure-java
https://github.com/AsamK/libtextsecure-java/commits/master

build.gradle
src/main/java/org/asamk/textsecure/Manager.java

index 0bd5b3c6f37b49c734ae99bb9f48b6ff22df008c..1b1c9e3505d3ed107b9a791ddd62c71698e693ee 100644 (file)
@@ -16,7 +16,7 @@ repositories {
 }
 
 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'
index dfae49de17d4532a38ffc525e83dddaf6fdb34de..2a2b5e4f3591473d984cdd50e1d76764b7cb5358 100644 (file)
@@ -239,7 +239,7 @@ class Manager implements TextSecure {
     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;