Batch storage item read requests

This commit is contained in:
Fedor Indutny 2022-04-12 17:50:17 -07:00 committed by GitHub
parent 2f5e4f1b98
commit 610ebdd1e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 144 additions and 29 deletions

View file

@ -832,9 +832,7 @@ export async function mergeContactRecord(
}
}
// Update verified status unconditionally to make sure we will take the
// latest identity key from the manifest.
{
if (contactRecord.identityKey) {
const verified = await conversation.safeGetVerified();
const storageServiceVerified = contactRecord.identityState || 0;
const verifiedOptions = {
@ -847,6 +845,8 @@ export async function mergeContactRecord(
details.push(`updating verified state to=${verified}`);
}
// Update verified status unconditionally to make sure we will take the
// latest identity key from the manifest.
let keyChange: boolean;
switch (storageServiceVerified) {
case STATE_ENUM.VERIFIED: