mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Implement support for receiving sender key messages
This commit is contained in:
parent
35622ac684
commit
ac18006abb
9 changed files with 664 additions and 13 deletions
|
@ -82,6 +82,12 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
|||
DateUtils.formatTimestamp(content.getServerReceivedTimestamp()),
|
||||
DateUtils.formatTimestamp(content.getServerDeliveredTimestamp()));
|
||||
|
||||
if (content.getSenderKeyDistributionMessage().isPresent()) {
|
||||
final var message = content.getSenderKeyDistributionMessage().get();
|
||||
writer.println("Received a sender key distribution message for distributionId {}",
|
||||
message.getDistributionId());
|
||||
}
|
||||
|
||||
if (content.getDataMessage().isPresent()) {
|
||||
var message = content.getDataMessage().get();
|
||||
printDataMessage(writer, message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue