You've already forked matrix-js-sdk
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user