mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Refactor ReceiveCommand in dbus mode and remove ExtendedDbusCommand
This commit is contained in:
parent
eec7aec069
commit
32818a8608
16 changed files with 301 additions and 261 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue