1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Replace keysProved and keysClaimed

These terms were somewhat confusing (and, in the case of megolm, misleading),
so replace them with explicit senderCurve25519Key and claimedEd25519Key fields.
This commit is contained in:
Richard van der Hoff
2017-06-19 17:36:23 +01:00
parent ce187786cb
commit 5049919855
5 changed files with 80 additions and 52 deletions

View File

@@ -222,7 +222,8 @@ OlmDecryption.prototype.decryptEvent = function(event) {
);
}
event.setClearData(payload, {curve25519: deviceKey}, payload.keys || {});
const claimedKeys = payload.keys || {};
event.setClearData(payload, deviceKey, claimedKeys.ed25519 || null);
};