From 4d65cb8f43489ce5bfac7f885e95e362b0fcfe97 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 28 Aug 2022 07:04:11 +0200 Subject: [PATCH] chore: Change Hive database path --- .../flutter_hive_collections_database.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/matrix_sdk_extensions.dart/flutter_hive_collections_database.dart b/lib/utils/matrix_sdk_extensions.dart/flutter_hive_collections_database.dart index 4f3f2adf..043e4f3b 100644 --- a/lib/utils/matrix_sdk_extensions.dart/flutter_hive_collections_database.dart +++ b/lib/utils/matrix_sdk_extensions.dart/flutter_hive_collections_database.dart @@ -62,14 +62,14 @@ class FlutterHiveCollectionsDatabase extends HiveCollectionsDatabase { } final db = FlutterHiveCollectionsDatabase( - 'hive_collections_${client.clientName.replaceAll(' ', '_').toLowerCase()}', + 'hive_${client.clientName.replaceAll(' ', '_').toLowerCase()}', await _findDatabasePath(client), key: hiverCipher, ); try { await db.open(); - } catch (_) { - Logs().w('Unable to open Hive. Delete database and storage key...'); + } catch (e, s) { + Logs().w('Unable to open Hive. Delete database and storage key...', e, s); const FlutterSecureStorage().delete(key: _cipherStorageKey); await db.clear(); rethrow;