fix: Save file

This commit is contained in:
Christian Pauly 2021-04-13 16:08:28 +02:00
commit 757ec7bb27
2 changed files with 4 additions and 3 deletions

View file

@ -27,7 +27,8 @@ extension MatrixFileExtension on MatrixFile {
element.click();
element.remove();
} else {
if (!(await Permission.storage.request()).isGranted) return;
if (PlatformInfos.isMobile &&
!(await Permission.storage.request()).isGranted) return;
final downloadsDir = PlatformInfos.isDesktop
? (await getDownloadsDirectory()).path
: Platform.isAndroid