minor tweak audio show play button after download

This commit is contained in:
Reinaldo Neto 2023-05-12 12:29:47 -03:00
parent 7fc975f63e
commit d138a74d9d
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ class MessageAudio extends React.Component<IMessageAudioProps, IMessageAudioStat
const fileSearch = await searchAudioFileAsync(url, messageId);
const audio = await downloadAudioFile(`${url}?rc_uid=${user.id}&rc_token=${user.token}`, fileSearch.filePath);
await this.sound.loadAsync({ uri: audio });
return this.setState({ loading: false });
return this.setState({ loading: false, toDownload: false });
}
};