mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 07:35:13 +00:00
fix: Try different directories on all kind of errors thrown for hive store
This commit is contained in:
parent
7ac90bb3f0
commit
7ffe9f8631
1 changed files with 2 additions and 2 deletions
|
@ -109,10 +109,10 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
|
|||
try {
|
||||
try {
|
||||
return (await getApplicationSupportDirectory()).path;
|
||||
} on MissingPlatformDirectoryException {
|
||||
} catch (_) {
|
||||
return (await getApplicationDocumentsDirectory()).path;
|
||||
}
|
||||
} on MissingPlatformDirectoryException {
|
||||
} catch (_) {
|
||||
return (await getDownloadsDirectory()).path;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue