diff --git a/lib/utils/matrix_sdk_extensions/flutter_matrix_sdk_database_builder.dart b/lib/utils/matrix_sdk_extensions/flutter_matrix_sdk_database_builder.dart index 3cc80e82e..55cc59c8c 100644 --- a/lib/utils/matrix_sdk_extensions/flutter_matrix_sdk_database_builder.dart +++ b/lib/utils/matrix_sdk_extensions/flutter_matrix_sdk_database_builder.dart @@ -23,15 +23,8 @@ Future flutterMatrixSdkDatabaseBuilder(Client client) async { database = await _constructDatabase(client); await database.open(); return database; - } catch (e) { - // Try to delete database so that it can created again on next init: - database?.delete().catchError( - (e, s) => Logs().w( - 'Unable to delete database, after failed construction', - e, - s, - ), - ); + } catch (e, s) { + Logs().wtf('Unable to build database!', e, s); // Send error notification: final l10n = lookupL10n(PlatformDispatcher.instance.locale); @@ -101,6 +94,8 @@ Future _constructDatabase(Client client) async { Logs().w('Unable to init database encryption', e, s); } + print('$path/${client.clientName}'); + return MatrixSdkDatabase( client.clientName, database: await openDatabase(