mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Persist notification data. Note that it will break the key storage for the session database.
This commit is contained in:
committed by
Benoit Marty
parent
25604b2651
commit
00c23618ab
@@ -30,6 +30,7 @@ anvil {
|
||||
|
||||
dependencies {
|
||||
implementation(libs.dagger)
|
||||
implementation(projects.libraries.androidutils)
|
||||
implementation(projects.libraries.core)
|
||||
implementation(projects.libraries.encryptedDb)
|
||||
api(projects.libraries.sessionStorage.api)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user