Include and process destinationPniIdentityKey

This commit is contained in:
Fedor Indutny 2024-03-11 18:08:38 -07:00 committed by GitHub
parent 711e321d16
commit e031d136a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 238 additions and 214 deletions

View file

@ -5,6 +5,7 @@ import * as log from '../logging/log';
import { isNotNil } from './isNotNil';
import { updateIdentityKey } from '../services/profiles';
import type { ServiceIdString } from '../types/ServiceId';
import * as Bytes from '../Bytes';
export async function verifyStoryListMembers(
serviceIds: Array<ServiceIdString>
@ -49,7 +50,8 @@ export async function verifyStoryListMembers(
verifiedServiceIds.delete(serviceId);
if (identityKey) {
await updateIdentityKey(identityKey, serviceId);
const identityKeyBytes = Bytes.fromBase64(identityKey);
await updateIdentityKey(identityKeyBytes, serviceId);
} else {
await window.ConversationController.get(serviceId)?.getProfiles();
}