download files

This commit is contained in:
Peter Maquiran
2024-09-11 12:38:25 +01:00
parent 80e1db12b8
commit 4413ce4698
3 changed files with 39 additions and 39 deletions
@@ -125,13 +125,14 @@ export class MessageCreateUseCaseService {
this.AttachmentLocalRepositoryService.insert({
$messageId: createMessageLocally.value,
base64: createDataURL(attachment.file, attachment.mimeType),
file: createBlobFromBase64(attachment.file, attachment.mimeType),
fileType: attachment.fileType,
source: attachment.source,
fileName: attachment.fileName,
applicationId: attachment.applicationId,
docId: attachment.docId,
mimeType: attachment.mimeType,
}).then((e) => {
if(e.isErr()) {
Logger.error('failed to create attachment locally on send message', {