1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

apply feedback from review, and improve js docs

This commit is contained in:
Hubert Chathi
2020-06-16 11:38:36 -04:00
parent fd126b8563
commit 2d73564eba
4 changed files with 14 additions and 10 deletions

View File

@@ -1549,12 +1549,11 @@ MegolmDecryption.prototype._buildKeyForwardingMessage = async function(
* @inheritdoc
*
* @param {module:crypto/OlmDevice.MegolmSessionData} session
* @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
* @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 || {};
MegolmDecryption.prototype.importRoomKey = function(session, opts = {}) {
return this._olmDevice.addInboundGroupSession(
session.room_id,
session.sender_key,