diff --git a/src/client.js b/src/client.js index 5b716c283..1cbfff947 100644 --- a/src/client.js +++ b/src/client.js @@ -1978,7 +1978,11 @@ MatrixClient.prototype._restoreKeyBackup = function( } } - return this.importRoomKeys(keys, { progressCallback, untrusted: true, source: "backup" }); + return this.importRoomKeys(keys, { + progressCallback, + untrusted: true, + source: "backup", + }); }).then(() => { return this._crypto.setTrustedBackupPubKey(backupPubKey); }).then(() => { diff --git a/src/crypto/algorithms/megolm.js b/src/crypto/algorithms/megolm.js index b247299d7..b8d0572da 100644 --- a/src/crypto/algorithms/megolm.js +++ b/src/crypto/algorithms/megolm.js @@ -1549,7 +1549,9 @@ MegolmDecryption.prototype._buildKeyForwardingMessage = async function( * @inheritdoc * * @param {module:crypto/OlmDevice.MegolmSessionData} session - * @param {string} source where the key comes from + * @param {object} opts options for the import + * @param {boolean} opts.untrusted whether the key should be considered as untrusted + * @param {string} opts.source where the key came from */ MegolmDecryption.prototype.importRoomKey = function(session, opts) { opts = opts || {};