Skip to content

Commit

Permalink
fix: editing messages with voice recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Oct 1, 2024
1 parent 062d7a6 commit fede5c9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions projects/stream-chat-angular/src/lib/attachment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,21 @@ export class AttachmentService<
thumb_url: attachment.thumb_url,
fromAttachment: attachment,
});
} else if (attachment.type === 'voiceRecording') {
attachmentUploads.push({
url: attachment.asset_url,
state: 'success',
file: {
name: attachment.title,
size: attachment.file_size,
type: attachment.mime_type,
} as File,
type: 'voiceRecording',
extraData: {
duration: attachment.duration,
waveform_data: attachment.waveform_data,
},
});
}
});

Expand Down

0 comments on commit fede5c9

Please sign in to comment.