Attempt to fix AccountRecord restore crash.

My guess is that we're seeing a crash when updating because we're using
an out-of-date recipient snapshot that has an old/invalid storageId.

This commit uses a fresher recipient, and it prefers using the raw
record (what's in the DB) instead.
This commit is contained in:
Greyson Parrelli
2023-11-02 10:25:14 -04:00
parent bba3334df5
commit b5c1051506
5 changed files with 13 additions and 5 deletions

View File

@@ -199,7 +199,7 @@ internal class AccountValues internal constructor(store: KeyValueStore) : Signal
fun generateAciIdentityKeyIfNecessary() {
synchronized(this) {
if (store.containsKey(KEY_ACI_IDENTITY_PUBLIC_KEY)) {
Log.w(TAG, "Tried to generate an ANI identity, but one was already set!", Throwable())
Log.w(TAG, "Tried to generate an ACI identity, but one was already set!", Throwable())
return
}