Don't output caption if it's empty
This commit is contained in:
parent
ae221e0447
commit
e450f36e81
@ -289,7 +289,7 @@ public record MessageEnvelope(
|
||||
a.getSize().map(Integer::longValue),
|
||||
a.getPreview(),
|
||||
Optional.empty(),
|
||||
a.getCaption(),
|
||||
a.getCaption().map(c -> c.isEmpty() ? null : c),
|
||||
a.getWidth() == 0 ? Optional.empty() : Optional.of(a.getWidth()),
|
||||
a.getHeight() == 0 ? Optional.empty() : Optional.of(a.getHeight()),
|
||||
a.getVoiceNote(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user