mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
fix: Try different directories on all kind of errors thrown for hive store
This commit is contained in:
parent
7f66fc733f
commit
b7ddf795e8
@ -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 New Issue
Block a user