diff --git a/CHANGES.md b/CHANGES.md index de39668af..285f2fb54 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -42,7 +42,11 @@ Removed events: The `chatBoxClosed`, `chatBoxMaximized` and `chatBoxMinimized` events now have the `model` as payload and not the `view`. -## 7.0.5 (Unreleased) +## 7.0.6 (unreleased) + +- #2500: Wrong assignment in OMEMO code + +## 7.0.5 (2021-03-16) - #2377: The @converse/headless NPM package is missing the dist directory, causing import errors - #2396: @converse/headless wrongly depends on `CustomElement` from the view layer diff --git a/src/plugins/omemo/store.js b/src/plugins/omemo/store.js index a87e5c4c1..48944ce32 100644 --- a/src/plugins/omemo/store.js +++ b/src/plugins/omemo/store.js @@ -237,7 +237,7 @@ const OMEMOStore = Model.extend({ _converse.omemo_store.storeSignedPreKey(signed_prekey); bundle['signed_prekey'] = { 'id': signed_prekey.keyId, - 'public_key': u.arrayBufferToBase64(signed_prekey.keyPair.privKey), + 'public_key': u.arrayBufferToBase64(signed_prekey.keyPair.pubKey), 'signature': u.arrayBufferToBase64(signed_prekey.signature) }; const keys = await Promise.all(