mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-11 18:22:49 +01:00
Merge branch 'td/fix-downloading-stuff' into 'main'
fix: download path for saving files Closes #636 See merge request famedly/fluffychat!545
This commit is contained in:
commit
69429fcd3e
@ -15,7 +15,7 @@ extension MatrixFileExtension on MatrixFile {
|
||||
final fileName = name.split('/').last;
|
||||
if (PlatformInfos.isMobile) {
|
||||
final tmpDirectory = PlatformInfos.isAndroid
|
||||
? Directory('/storage/emulated/0/Download')
|
||||
? Directory('/storage/emulated/0/Download/')
|
||||
: await getTemporaryDirectory();
|
||||
final path = '${tmpDirectory.path}$fileName';
|
||||
await File(path).writeAsBytes(bytes);
|
||||
|
Loading…
Reference in New Issue
Block a user