Skip to content

Commit fede5c9

Browse files
committed
fix: editing messages with voice recordings
1 parent 062d7a6 commit fede5c9

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

projects/stream-chat-angular/src/lib/attachment.service.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,21 @@ export class AttachmentService<
272272
thumb_url: attachment.thumb_url,
273273
fromAttachment: attachment,
274274
});
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+
});
275290
}
276291
});
277292

0 commit comments

Comments
 (0)