mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 13:05:11 +00:00
fix: Removing sembast
This commit is contained in:
parent
45d7113a54
commit
cd6eac1bec
1 changed files with 0 additions and 3 deletions
|
@ -6,7 +6,6 @@ import 'package:hive_flutter/hive_flutter.dart';
|
|||
import 'package:matrix/encryption/utils/key_verification.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:sembast/sembast.dart';
|
||||
|
||||
import 'package:fluffychat/utils/platform_infos.dart';
|
||||
import 'famedlysdk_store.dart';
|
||||
|
@ -39,14 +38,12 @@ abstract class ClientManager {
|
|||
await Store().setItem(clientNamespace, jsonEncode(clientNames.toList()));
|
||||
}
|
||||
final clients = clientNames.map(createClient).toList();
|
||||
disableSembastCooperator();
|
||||
await Future.wait(clients.map((client) => client
|
||||
.init(
|
||||
waitForFirstSync: false,
|
||||
waitUntilLoadCompletedLoaded: false,
|
||||
)
|
||||
.catchError((e, s) => Logs().e('Unable to initialize client', e, s))));
|
||||
enableSembastCooperator();
|
||||
if (clients.length > 1 && clients.any((c) => !c.isLogged())) {
|
||||
final loggedOutClients = clients.where((c) => !c.isLogged()).toList();
|
||||
for (final client in loggedOutClients) {
|
||||
|
|
Loading…
Reference in a new issue