mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
parent
75d7270d5a
commit
f1fd528483
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ class ManagerImpl implements Manager {
|
||||||
final var textAttachment = AttachmentUtils.createAttachmentStream(new StreamDetails(new ByteArrayInputStream(
|
final var textAttachment = AttachmentUtils.createAttachmentStream(new StreamDetails(new ByteArrayInputStream(
|
||||||
messageBytes), MimeUtils.LONG_TEXT, messageBytes.length), Optional.empty());
|
messageBytes), MimeUtils.LONG_TEXT, messageBytes.length), Optional.empty());
|
||||||
messageBuilder.withBody(message.messageText().substring(0, 2000));
|
messageBuilder.withBody(message.messageText().substring(0, 2000));
|
||||||
messageBuilder.withAttachment(textAttachment);
|
messageBuilder.withAttachment(context.getAttachmentHelper().uploadAttachment(textAttachment));
|
||||||
} else {
|
} else {
|
||||||
messageBuilder.withBody(message.messageText());
|
messageBuilder.withBody(message.messageText());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue