mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-20 07:34:20 +01:00
Refactor ReceiveCommand in dbus mode and remove ExtendedDbusCommand
This commit is contained in:
@@ -543,8 +543,8 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
|
||||
if (attachment.width().isPresent() || attachment.height().isPresent()) {
|
||||
writer.println("Dimensions: {}x{}", attachment.width().orElse(0), attachment.height().orElse(0));
|
||||
}
|
||||
if (attachment.id().isPresent()) {
|
||||
var file = m.getAttachmentFile(attachment.id().get());
|
||||
if (attachment.file().isPresent()) {
|
||||
var file = attachment.file().get();
|
||||
if (file.exists()) {
|
||||
writer.println("Stored plaintext in: {}", file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user