X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/237abe431bb77436ef7a23d32339804fff592cc7..6c33a89f82ffac98454c6f854e1c8877e3941f6a:/src/main/java/org/asamk/signal/ReceiveMessageHandler.java diff --git a/src/main/java/org/asamk/signal/ReceiveMessageHandler.java b/src/main/java/org/asamk/signal/ReceiveMessageHandler.java index 9ab752cf..c3bede8b 100644 --- a/src/main/java/org/asamk/signal/ReceiveMessageHandler.java +++ b/src/main/java/org/asamk/signal/ReceiveMessageHandler.java @@ -527,8 +527,9 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler { } } - System.out.println(" - Organisation: " + - (contact.getOrganization().isPresent() ? contact.getOrganization().get() : "-")); + System.out.println(" - Organisation: " + ( + contact.getOrganization().isPresent() ? contact.getOrganization().get() : "-" + )); } } if (message.getSticker().isPresent()) { @@ -608,25 +609,27 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler { /** * Prints the Signal mention information * - * @param mention is the Signal mention to print - * @param m is the Manager. used to resolve UUIDs into phone numbers if possible + * @param mention is the Signal mention to print + * @param m is the Manager. used to resolve UUIDs into phone numbers if possible * @param leadingSpaces is the number of spaces you want the message to be indented by */ private void printMention(SignalServiceDataMessage.Mention mention, Manager m, int leadingSpaces) { String spaces = " ".repeat(leadingSpaces); - System.out.println(spaces + "- " + m.resolveSignalServiceAddress(new SignalServiceAddress(mention.getUuid(), null)) - .getLegacyIdentifier() + ": " + mention.getStart() + " (length: " + mention.getLength() + ")"); + System.out.println(spaces + "- " + m.resolveSignalServiceAddress(new SignalServiceAddress(mention.getUuid(), + null)).getLegacyIdentifier() + ": " + mention.getStart() + " (length: " + mention.getLength() + ")"); } /** * Prints the Signal attachment information * - * @param attachment is the Signal attachment to print + * @param attachment is the Signal attachment to print * @param leadingSpaces is the number of spaces you want the message to be indented by */ private void printAttachment(SignalServiceAttachment attachment, int leadingSpaces) { String spaces = " ".repeat(leadingSpaces); - System.out.println(spaces + "- " + attachment.getContentType() + " (" + (attachment.isPointer() ? "Pointer" : "") + ( + System.out.println(spaces + "- " + attachment.getContentType() + " (" + ( + attachment.isPointer() ? "Pointer" : "" + ) + ( attachment.isStream() ? "Stream" : "" ) + ")"); if (attachment.isPointer()) {