Don't insert identity verification message for the initial restore.

This commit is contained in:
Greyson Parrelli 2020-05-24 13:00:16 -04:00
parent 9d1d9e33ed
commit 207c467c6b

View file

@ -513,7 +513,6 @@ public class RecipientDatabase extends Database {
IdentityKey identityKey = new IdentityKey(insert.getIdentityKey().get(), 0);
DatabaseFactory.getIdentityDatabase(context).updateIdentityAfterSync(recipientId, identityKey, StorageSyncModels.remoteToLocalIdentityStatus(insert.getIdentityState()));
IdentityUtil.markIdentityVerified(context, Recipient.resolved(recipientId), true, true);
} catch (InvalidKeyException e) {
Log.w(TAG, "Failed to process identity key during insert! Skipping.", e);
}