minor tweak audio show play button after download
This commit is contained in:
parent
7fc975f63e
commit
d138a74d9d
|
@ -287,7 +287,7 @@ class MessageAudio extends React.Component<IMessageAudioProps, IMessageAudioStat
|
||||||
const fileSearch = await searchAudioFileAsync(url, messageId);
|
const fileSearch = await searchAudioFileAsync(url, messageId);
|
||||||
const audio = await downloadAudioFile(`${url}?rc_uid=${user.id}&rc_token=${user.token}`, fileSearch.filePath);
|
const audio = await downloadAudioFile(`${url}?rc_uid=${user.id}&rc_token=${user.token}`, fileSearch.filePath);
|
||||||
await this.sound.loadAsync({ uri: audio });
|
await this.sound.loadAsync({ uri: audio });
|
||||||
return this.setState({ loading: false });
|
return this.setState({ loading: false, toDownload: false });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue