Add recordIkm to generated ManifestRecord

This commit is contained in:
Fedor Indutny 2024-11-04 17:07:05 -08:00 committed by GitHub
parent 39a358749d
commit f8c3bbc6f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -872,6 +872,9 @@ async function encryptManifest(
manifestRecord.version = Long.fromNumber(version);
manifestRecord.sourceDevice = window.storage.user.getDeviceId() ?? 0;
manifestRecord.keys = Array.from(manifestRecordKeys);
if (recordIkm != null) {
manifestRecord.recordIkm = recordIkm;
}
const storageKeyBase64 = window.storage.get('storageKey');
if (!storageKeyBase64) {