fix: Init hive

This commit is contained in:
Christian Pauly 2021-09-19 14:22:26 +02:00
commit 59f9a9f447
2 changed files with 7 additions and 5 deletions

View file

@ -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;