We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 062d7a6 + fede5c9 commit 3a9be45Copy full SHA for 3a9be45
1 file changed
projects/stream-chat-angular/src/lib/attachment.service.ts
@@ -272,6 +272,21 @@ export class AttachmentService<
272
thumb_url: attachment.thumb_url,
273
fromAttachment: attachment,
274
});
275
+ } else if (attachment.type === 'voiceRecording') {
276
+ attachmentUploads.push({
277
+ url: attachment.asset_url,
278
+ state: 'success',
279
+ file: {
280
+ name: attachment.title,
281
+ size: attachment.file_size,
282
+ type: attachment.mime_type,
283
+ } as File,
284
+ type: 'voiceRecording',
285
+ extraData: {
286
+ duration: attachment.duration,
287
+ waveform_data: attachment.waveform_data,
288
+ },
289
+ });
290
}
291
292
0 commit comments