Do not compute waveform for a long audio

This commit is contained in:
Fedor Indutny 2021-05-12 12:18:02 -07:00 committed by GitHub
parent 44ecfe4746
commit b1d49f7b3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 6 deletions

View file

@ -804,6 +804,21 @@ story.add('Audio', () => {
return renderBothDirections(props);
});
story.add('Long Audio', () => {
const props = createProps({
attachments: [
{
contentType: AUDIO_MP3,
fileName: 'long-audio.mp3',
url: '/fixtures/long-audio.mp3',
},
],
status: 'sent',
});
return renderBothDirections(props);
});
story.add('Audio with Caption', () => {
const props = createProps({
attachments: [