From d9263e775d83bdc23d60e515cd9d0c29d71a6343 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Wed, 17 Nov 2021 12:48:45 +0100 Subject: [PATCH] fix: FluffyBox logs --- .../matrix_sdk_extensions.dart/fluffybox_database.dart | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/utils/matrix_sdk_extensions.dart/fluffybox_database.dart b/lib/utils/matrix_sdk_extensions.dart/fluffybox_database.dart index d2b87cd8..b1dd1c74 100644 --- a/lib/utils/matrix_sdk_extensions.dart/fluffybox_database.dart +++ b/lib/utils/matrix_sdk_extensions.dart/fluffybox_database.dart @@ -30,7 +30,7 @@ class FluffyBoxDatabase extends MatrixIndexedDatabase { static const int _cipherStorageKeyLength = 512; static Future databaseBuilder(Client client) async { - Logs().d('Open Sembast...'); + Logs().d('Open FluffyBox...'); try { // Workaround for secure storage is calling Platform.operatingSystem on web if (kIsWeb) throw MissingPluginException(); @@ -49,19 +49,17 @@ class FluffyBoxDatabase extends MatrixIndexedDatabase { // workaround for if we just wrote to the key and it still doesn't exist final rawEncryptionKey = await secureStorage.read(key: _cipherStorageKey); if (rawEncryptionKey == null) throw MissingPluginException(); - - //codec = getEncryptSembastCodec(password: rawEncryptionKey); } on MissingPluginException catch (_) { - Logs().i('Sembast encryption is not supported on this platform'); + Logs().i('FluffyBox encryption is not supported on this platform'); } final db = FluffyBoxDatabase( - client.clientName, + 'FluffyBox-${client.clientName}', path: await _findDatabasePath(client), dbFactory: factory, ); await db.open(); - Logs().d('Sembast is ready'); + Logs().d('FluffyBox is ready'); return db; }