+ System.out.println(" " + DateUtils.formatTimestamp(timestamp));
+ }
+ }
+ if (content.getTypingMessage().isPresent()) {
+ System.out.println("Received a typing message");
+ SignalServiceTypingMessage typingMessage = content.getTypingMessage().get();
+ System.out.println(" - Action: " + typingMessage.getAction());
+ System.out.println(" - Timestamp: " + DateUtils.formatTimestamp(typingMessage.getTimestamp()));
+ if (typingMessage.getGroupId().isPresent()) {
+ GroupInfo group = m.getGroup(typingMessage.getGroupId().get());
+ if (group != null) {
+ System.out.println(" Name: " + group.name);
+ } else {
+ System.out.println(" Name: <Unknown group>");
+ }