feat: Enable E2EE by default for new rooms
This commit is contained in:
parent
d75b538923
commit
92523cb7b0
3 changed files with 37 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue