mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-23 18:44:10 +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
|
*.swp
|
||||||
*.snap
|
*.snap
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.local/
|
||||||
.atom/
|
.atom/
|
||||||
.buildlog/
|
.buildlog/
|
||||||
.history
|
.history
|
||||||
|
@ -24,7 +24,11 @@ class FlutterFamedlySdkHiveDatabase extends FamedlySdkHiveDatabase {
|
|||||||
Client client) async {
|
Client client) async {
|
||||||
if (!kIsWeb && !_hiveInitialized) {
|
if (!kIsWeb && !_hiveInitialized) {
|
||||||
Logs().i('Init Hive database...');
|
Logs().i('Init Hive database...');
|
||||||
|
if (!kIsWeb && Platform.isLinux) {
|
||||||
|
Hive.init('.local/share/fluffychat/');
|
||||||
|
} else {
|
||||||
await Hive.initFlutter();
|
await Hive.initFlutter();
|
||||||
|
}
|
||||||
_hiveInitialized = true;
|
_hiveInitialized = true;
|
||||||
}
|
}
|
||||||
HiveCipher hiverCipher;
|
HiveCipher hiverCipher;
|
||||||
|
Loading…
Reference in New Issue
Block a user