1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

More comments explaining the keysClaimed/keysProved properties

This commit is contained in:
Mark Haines
2016-09-16 15:42:02 +01:00
parent 3bc56cf3f8
commit 905059d6da

View File

@@ -253,6 +253,9 @@ module.exports.MatrixEvent.prototype = {
* @return {object}
*/
getKeysProved: function() {
// The keysProved property usually isn't actually part of the decrypted
// plaintext. Instead it is added after decryption by the crypto
// algorithm in lib/crypto/algorithms.
return this._clearEvent.keysProved || {};
},
@@ -265,6 +268,9 @@ module.exports.MatrixEvent.prototype = {
* @return {object}
*/
getKeysClaimed: function() {
// The keysClaimed property usually isn't actually part of the
// decrypted plaintext. Instead it is added after decryption by the
// crypto algorithm in lib/crypto/algorithms.
return this._clearEvent.keysClaimed || {};
},