mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Update libsignal-service-java
This commit is contained in:
parent
f445cfb5c1
commit
30690785fd
19 changed files with 71 additions and 42 deletions
|
@ -5,13 +5,15 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
|
||||
import org.asamk.Signal;
|
||||
import org.asamk.signal.manager.Manager;
|
||||
import org.asamk.signal.util.Util;
|
||||
import org.whispersystems.signalservice.api.messages.multidevice.SignalServiceSyncMessage;
|
||||
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
|
||||
|
||||
import java.util.Base64;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.asamk.signal.util.Util.getLegacyIdentifier;
|
||||
|
||||
enum JsonSyncMessageType {
|
||||
CONTACTS_SYNC,
|
||||
GROUPS_SYNC,
|
||||
|
@ -50,7 +52,7 @@ class JsonSyncMessage {
|
|||
.get()
|
||||
.getAddresses()
|
||||
.stream()
|
||||
.map(SignalServiceAddress::getLegacyIdentifier)
|
||||
.map(Util::getLegacyIdentifier)
|
||||
.collect(Collectors.toList());
|
||||
this.blockedGroupIds = syncMessage.getBlockedList()
|
||||
.get()
|
||||
|
@ -66,7 +68,7 @@ class JsonSyncMessage {
|
|||
this.readMessages = syncMessage.getRead()
|
||||
.get()
|
||||
.stream()
|
||||
.map(message -> new JsonSyncReadMessage(message.getSender().getLegacyIdentifier(),
|
||||
.map(message -> new JsonSyncReadMessage(getLegacyIdentifier(message.getSender()),
|
||||
message.getTimestamp()))
|
||||
.collect(Collectors.toList());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue