parent
75d7270d5a
commit
f1fd528483
@ -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…
x
Reference in New Issue
Block a user