Persist notification data. Note that it will break the key storage for the session database.
This commit is contained in:
parent
25604b2651
commit
00c23618ab
8 changed files with 90 additions and 39 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue