Added JsonSyncDataMessage class with destination field.

This commit is contained in:
Gabriel Fernández Valdés 2019-09-29 09:03:12 -04:00 committed by AsamK
parent 7e267f1ebb
commit 62696fbc67
2 changed files with 20 additions and 2 deletions

View file

@ -7,13 +7,13 @@ import java.util.List;
class JsonSyncMessage {
JsonDataMessage sentMessage;
JsonSyncDataMessage sentMessage;
List<String> blockedNumbers;
List<ReadMessage> readMessages;
JsonSyncMessage(SignalServiceSyncMessage syncMessage) {
if (syncMessage.getSent().isPresent()) {
this.sentMessage = new JsonDataMessage(syncMessage.getSent().get().getMessage());
this.sentMessage = new JsonSyncDataMessage(syncMessage.getSent().get());
}
if (syncMessage.getBlockedList().isPresent()) {
this.blockedNumbers = syncMessage.getBlockedList().get().getNumbers();