fix: Open database crashes on start
This commit is contained in:
parent
9e416eefa1
commit
a37810c061
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue