Address issues with PNI app migration.

This commit is contained in:
Greyson Parrelli
2022-02-18 23:03:24 -05:00
parent a207bf965a
commit 4f1aa34a46
3 changed files with 15 additions and 1 deletions

View File

@@ -162,6 +162,10 @@ internal class AccountValues internal constructor(store: KeyValueStore) : Signal
.commit()
}
fun hasPniIdentityKey(): Boolean {
return store.containsKey(KEY_PNI_IDENTITY_PUBLIC_KEY)
}
/** Generates and saves an identity key pair for the PNI identity. Should only be done once. */
fun generatePniIdentityKey() {
Log.i(TAG, "Generating a new PNI identity key pair.")