X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/641dc7577c58cf2c15e82a87a5d87623ef665e32..15e802971524cc061b72a1c5335140f517dd8f03:/src/main/java/org/asamk/signal/commands/ReceiveCommand.java diff --git a/src/main/java/org/asamk/signal/commands/ReceiveCommand.java b/src/main/java/org/asamk/signal/commands/ReceiveCommand.java index 301694e9..517d894b 100644 --- a/src/main/java/org/asamk/signal/commands/ReceiveCommand.java +++ b/src/main/java/org/asamk/signal/commands/ReceiveCommand.java @@ -10,7 +10,6 @@ import org.asamk.signal.JsonWriter; import org.asamk.signal.OutputType; import org.asamk.signal.OutputWriter; import org.asamk.signal.PlainTextWriter; -import org.asamk.signal.PlainTextWriterImpl; import org.asamk.signal.ReceiveMessageHandler; import org.asamk.signal.commands.exceptions.CommandException; import org.asamk.signal.commands.exceptions.IOErrorException; @@ -79,7 +78,7 @@ public class ReceiveCommand implements ExtendedDbusCommand, LocalCommand { jsonWriter.write(object); }); } else { - final var writer = (PlainTextWriterImpl) outputWriter; + final var writer = (PlainTextWriter) outputWriter; dbusconnection.addSigHandler(Signal.MessageReceived.class, signal, messageReceived -> { writer.println("Envelope from: {}", messageReceived.getSender());