mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Implement fetch messages
Uses a patched libtextsecure-java https://github.com/AsamK/libtextsecure-java/commits/master
This commit is contained in:
parent
239afa07e8
commit
43ec78594c
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue