Persist notification data. Note that it will break the key storage for the session database.

This commit is contained in:
Benoit Marty 2023-04-04 14:09:14 +02:00 committed by Benoit Marty
parent 25604b2651
commit 00c23618ab
8 changed files with 90 additions and 39 deletions

View file

@ -35,7 +35,7 @@ object SessionStorageModule {
fun provideMatrixDatabase(@ApplicationContext context: Context): SessionDatabase {
val name = "session_database"
val secretFile = context.getDatabasePath("$name.key")
val passphraseProvider = RandomSecretPassphraseProvider(context, secretFile, name)
val passphraseProvider = RandomSecretPassphraseProvider(context, secretFile)
val driver = SqlCipherDriverFactory(passphraseProvider)
.create(SessionDatabase.Schema, "$name.db", context)
return SessionDatabase(driver)