mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-23 10:34:25 +01:00
fix: Flutter Hive on Linux
This commit is contained in:
parent
6bbd6eb0c0
commit
1c1a4fa4f3
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@
|
||||
*.swp
|
||||
*.snap
|
||||
.DS_Store
|
||||
.local/
|
||||
.atom/
|
||||
.buildlog/
|
||||
.history
|
||||
|
@ -24,7 +24,11 @@ class FlutterFamedlySdkHiveDatabase extends FamedlySdkHiveDatabase {
|
||||
Client client) async {
|
||||
if (!kIsWeb && !_hiveInitialized) {
|
||||
Logs().i('Init Hive database...');
|
||||
await Hive.initFlutter();
|
||||
if (!kIsWeb && Platform.isLinux) {
|
||||
Hive.init('.local/share/fluffychat/');
|
||||
} else {
|
||||
await Hive.initFlutter();
|
||||
}
|
||||
_hiveInitialized = true;
|
||||
}
|
||||
HiveCipher hiverCipher;
|
||||
|
Loading…
Reference in New Issue
Block a user