From fd126b8563cd85878cda458fa8fe0507dc29d942 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Mon, 15 Jun 2020 17:53:37 -0400 Subject: [PATCH] lint --- src/client.js | 6 +++++- src/crypto/algorithms/megolm.js | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 || {};