mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user