fix: Remove deprecated meomry caching of downloaded files

This commit is contained in:
Christian Pauly 2022-11-21 18:16:46 +01:00
commit 8f64afbed9
2 changed files with 2 additions and 40 deletions

View file

@ -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);