fix: Remove deprecated meomry caching of downloaded files
This commit is contained in:
parent
abcea4d733
commit
8f64afbed9
2 changed files with 2 additions and 40 deletions
|
|
@ -60,9 +60,7 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|||
if (status != AudioPlayerStatus.notDownloaded) return;
|
||||
setState(() => status = AudioPlayerStatus.downloading);
|
||||
try {
|
||||
final matrixFile =
|
||||
await widget.event.downloadAndDecryptAttachmentCached();
|
||||
if (matrixFile == null) throw ('Download failed');
|
||||
final matrixFile = await widget.event.downloadAndDecryptAttachment();
|
||||
final tempDir = await getTemporaryDirectory();
|
||||
final fileName = Uri.encodeComponent(
|
||||
widget.event.attachmentOrThumbnailMxcUrl()!.pathSegments.last);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue