You've already forked matrix-js-sdk
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:
@@ -253,6 +253,9 @@ module.exports.MatrixEvent.prototype = {
|
|||||||
* @return {object}
|
* @return {object}
|
||||||
*/
|
*/
|
||||||
getKeysProved: function() {
|
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 || {};
|
return this._clearEvent.keysProved || {};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -265,6 +268,9 @@ module.exports.MatrixEvent.prototype = {
|
|||||||
* @return {object}
|
* @return {object}
|
||||||
*/
|
*/
|
||||||
getKeysClaimed: function() {
|
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 || {};
|
return this._clearEvent.keysClaimed || {};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user