mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59: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 {
|
Future<String> _getFileStoreDirectory() async {
|
||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
return (await getApplicationSupportDirectory()).path;
|
return (await getTemporaryDirectory()).path;
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
return (await getApplicationDocumentsDirectory()).path;
|
return (await getApplicationDocumentsDirectory()).path;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user