Export long message attachments
This commit is contained in:
parent
a9406a7914
commit
511fc9c1a0
20 changed files with 423 additions and 82 deletions
|
@ -64,7 +64,7 @@ export async function addAttachmentToMessage(
|
|||
return {
|
||||
...edit,
|
||||
body: Bytes.toString(attachmentData),
|
||||
bodyAttachment: undefined,
|
||||
bodyAttachment: attachment,
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -96,7 +96,7 @@ export async function addAttachmentToMessage(
|
|||
|
||||
message.set({
|
||||
body: Bytes.toString(attachmentData),
|
||||
bodyAttachment: undefined,
|
||||
bodyAttachment: attachment,
|
||||
});
|
||||
} finally {
|
||||
if (attachment.path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue