mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
Update dependencies
Sets the complete flag for contacts message, Fixes #81
This commit is contained in:
parent
d270ea8c2e
commit
0f1d0597ae
6 changed files with 36 additions and 19 deletions
|
@ -938,8 +938,13 @@ public class Main {
|
|||
SignalServiceSyncMessage syncMessage = content.getSyncMessage().get();
|
||||
|
||||
if (syncMessage.getContacts().isPresent()) {
|
||||
System.out.println("Received sync contacts");
|
||||
printAttachment(syncMessage.getContacts().get());
|
||||
final ContactsMessage contactsMessage = syncMessage.getContacts().get();
|
||||
if (contactsMessage.isComplete()) {
|
||||
System.out.println("Received complete sync contacts");
|
||||
} else {
|
||||
System.out.println("Received sync contacts");
|
||||
}
|
||||
printAttachment(contactsMessage.getContactsStream());
|
||||
}
|
||||
if (syncMessage.getGroups().isPresent()) {
|
||||
System.out.println("Received sync groups");
|
||||
|
@ -1051,6 +1056,7 @@ public class Main {
|
|||
System.out.println(" Id: " + pointer.getId() + " Key length: " + pointer.getKey().length + (pointer.getRelay().isPresent() ? " Relay: " + pointer.getRelay().get() : ""));
|
||||
System.out.println(" Filename: " + (pointer.getFileName().isPresent() ? pointer.getFileName().get() : "-"));
|
||||
System.out.println(" Size: " + (pointer.getSize().isPresent() ? pointer.getSize().get() + " bytes" : "<unavailable>") + (pointer.getPreview().isPresent() ? " (Preview is available: " + pointer.getPreview().get().length + " bytes)" : ""));
|
||||
System.out.println(" Voice note: " + (pointer.getVoiceNote() ? "yes" : "no"));
|
||||
File file = m.getAttachmentFile(pointer.getId());
|
||||
if (file.exists()) {
|
||||
System.out.println(" Stored plaintext in: " + file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue