Update libsignal

This commit is contained in:
AsamK 2020-12-21 10:25:36 +01:00
parent b4311c7b76
commit 644aacf595
9 changed files with 72 additions and 46 deletions

View file

@ -318,6 +318,9 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
if (receiptMessage.isReadReceipt()) {
System.out.println(" - Is read receipt");
}
if (receiptMessage.isViewedReceipt()) {
System.out.println(" - Is viewed receipt");
}
System.out.println(" - Timestamps:");
for (long timestamp : receiptMessage.getTimestamps()) {
System.out.println(" " + DateUtils.formatTimestamp(timestamp));
@ -397,6 +400,11 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
System.out.println(" Has signed group change: " + groupInfo.hasSignedGroupChange());
}
}
if (message.getGroupCallUpdate().isPresent()) {
final SignalServiceDataMessage.GroupCallUpdate groupCallUpdate = message.getGroupCallUpdate().get();
System.out.println("Group call update:");
System.out.println(" - Era id: " + groupCallUpdate.getEraId());
}
if (message.getPreviews().isPresent()) {
final List<SignalServiceDataMessage.Preview> previews = message.getPreviews().get();
System.out.println("Previews:");