add audio

This commit is contained in:
Peter Maquiran
2024-08-15 16:34:07 +01:00
parent 8e25733760
commit d1918d6695
10 changed files with 48 additions and 43 deletions
@@ -47,9 +47,13 @@ export class MessageCreateUseCaseService {
for (const attachment of message.attachments) {
const createAttachmentLocally = this.AttachmentRepositoryService.create({
this.AttachmentRepositoryService.create({
$messageId: createMessageLocally.value.$id,
file: createDataURL(attachment.file, attachment.mimeType)
}).then((e) => {
if(e.isErr()) {
console.log('e', e.error, createDataURL(attachment.file, attachment.mimeType))
}
})
attachment.safeFile = createDataURL(attachment.file, attachment.mimeType)