mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
refactor: Store cached files in tmp directory so OS will clear file cache from time to time
This commit is contained in:
parent
dfc933115f
commit
1cbfb592e9
@ -113,7 +113,7 @@ class FlutterHiveCollectionsDatabase extends HiveCollectionsDatabase {
|
||||
Future<String> _getFileStoreDirectory() async {
|
||||
try {
|
||||
try {
|
||||
return (await getApplicationSupportDirectory()).path;
|
||||
return (await getTemporaryDirectory()).path;
|
||||
} catch (_) {
|
||||
return (await getApplicationDocumentsDirectory()).path;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user