mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Don't output caption if it's empty
This commit is contained in:
parent
ae221e0447
commit
e450f36e81
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ public record MessageEnvelope(
|
||||||
a.getSize().map(Integer::longValue),
|
a.getSize().map(Integer::longValue),
|
||||||
a.getPreview(),
|
a.getPreview(),
|
||||||
Optional.empty(),
|
Optional.empty(),
|
||||||
a.getCaption(),
|
a.getCaption().map(c -> c.isEmpty() ? null : c),
|
||||||
a.getWidth() == 0 ? Optional.empty() : Optional.of(a.getWidth()),
|
a.getWidth() == 0 ? Optional.empty() : Optional.of(a.getWidth()),
|
||||||
a.getHeight() == 0 ? Optional.empty() : Optional.of(a.getHeight()),
|
a.getHeight() == 0 ? Optional.empty() : Optional.of(a.getHeight()),
|
||||||
a.getVoiceNote(),
|
a.getVoiceNote(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue