fix: Open database crashes on start

pull/2025/head
krille-chan 6 months ago
parent 9e416eefa1
commit a37810c061
No known key found for this signature in database

@ -80,12 +80,12 @@ Future<MatrixSdkDatabase> _constructDatabase(String clientName) async {
final factory =
createDatabaseFactoryFfi(ffiInit: SQfLiteEncryptionHelper.ffiInit);
// migrate from potential previous SQLite database path to current one
await _migrateLegacyLocation(path, clientName);
// required for [getDatabasesPath]
databaseFactory = factory;
// migrate from potential previous SQLite database path to current one
await _migrateLegacyLocation(path, clientName);
// in case we got a cipher, we use the encryption helper
// to manage SQLite encryption
final helper = cipher == null

Loading…
Cancel
Save