fix: Init hive
This commit is contained in:
parent
053b71aad5
commit
59f9a9f447
2 changed files with 7 additions and 5 deletions
|
|
@ -49,11 +49,6 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
|
|||
Client client) async {
|
||||
if (!kIsWeb && !_hiveInitialized) {
|
||||
Logs().i('Init Hive database...');
|
||||
if (PlatformInfos.isLinux) {
|
||||
Hive.init((await getApplicationSupportDirectory()).path);
|
||||
} else {
|
||||
await Hive.initFlutter();
|
||||
}
|
||||
_hiveInitialized = true;
|
||||
}
|
||||
HiveCipher hiverCipher;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue