Merge branch 'soru/install-on-sd' into 'main'
fix: Try different directories on all kind of errors thrown for hive store Closes #501 See merge request famedly/fluffychat!478
This commit is contained in:
commit
ab4a5d04b0
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…
Add table
Reference in a new issue