Load attachment data before sending message
This commit is contained in:
parent
1c8123ff1a
commit
9a540d6d18
2 changed files with 36 additions and 1 deletions
|
@ -657,10 +657,13 @@
|
|||
profileKey = storage.get('profileKey');
|
||||
}
|
||||
|
||||
const loadData = Attachment.loadData(migrationContext.readAttachmentData);
|
||||
const attachmentsWithData =
|
||||
await Promise.all(messageWithSchema.attachments.map(loadData));
|
||||
message.send(sendFunction(
|
||||
this.get('id'),
|
||||
body,
|
||||
messageWithSchema.attachments,
|
||||
attachmentsWithData,
|
||||
now,
|
||||
this.get('expireTimer'),
|
||||
profileKey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue