mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 23:12:37 +01:00
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
86a321af6e
@ -109,10 +109,10 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
|
|||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
return (await getApplicationSupportDirectory()).path;
|
return (await getApplicationSupportDirectory()).path;
|
||||||
} on MissingPlatformDirectoryException {
|
} catch (_) {
|
||||||
return (await getApplicationDocumentsDirectory()).path;
|
return (await getApplicationDocumentsDirectory()).path;
|
||||||
}
|
}
|
||||||
} on MissingPlatformDirectoryException {
|
} catch (_) {
|
||||||
return (await getDownloadsDirectory()).path;
|
return (await getDownloadsDirectory()).path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user