feat: Enable E2EE by default for new rooms

This commit is contained in:
Krille Fear 2021-10-10 10:43:50 +02:00
commit 92523cb7b0
3 changed files with 37 additions and 17 deletions

View file

@ -48,7 +48,6 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
static Future<FamedlySdkHiveDatabase> hiveDatabaseBuilder(
Client client) async {
if (!kIsWeb && !_hiveInitialized) {
Logs().i('Init Hive database...');
_hiveInitialized = true;
}
HiveCipher hiverCipher;
@ -81,7 +80,6 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
client.clientName,
encryptionCipher: hiverCipher,
);
Logs().i('Open Hive database...');
try {
await db.open();
} catch (e, s) {
@ -89,7 +87,6 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
await db.clear(client.id);
await db.open();
}
Logs().i('Hive database is ready!');
return db;
}