You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
fix a lint error
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
"build": "babel -s -d lib src && rimraf dist && mkdir dist && browserify -d browser-index.js | exorcist dist/browser-matrix.js.map > dist/browser-matrix.js && uglifyjs -c -m -o dist/browser-matrix.min.js --source-map dist/browser-matrix.min.js.map --in-source-map dist/browser-matrix.js.map dist/browser-matrix.js",
|
"build": "babel -s -d lib src && rimraf dist && mkdir dist && browserify -d browser-index.js | exorcist dist/browser-matrix.js.map > dist/browser-matrix.js && uglifyjs -c -m -o dist/browser-matrix.min.js --source-map dist/browser-matrix.min.js.map --in-source-map dist/browser-matrix.js.map dist/browser-matrix.js",
|
||||||
"dist": "npm run build",
|
"dist": "npm run build",
|
||||||
"watch": "watchify -d browser-index.js -o 'exorcist dist/browser-matrix.js.map > dist/browser-matrix.js' -v",
|
"watch": "watchify -d browser-index.js -o 'exorcist dist/browser-matrix.js.map > dist/browser-matrix.js' -v",
|
||||||
"lint": "eslint --max-warnings 113 src spec",
|
"lint": "eslint --max-warnings 112 src spec",
|
||||||
"prepublish": "npm run build && git rev-parse HEAD > git-revision.txt"
|
"prepublish": "npm run build && git rev-parse HEAD > git-revision.txt"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -246,15 +246,15 @@ MegolmEncryption.prototype._ensureOutboundSession = function(devicesInRoom) {
|
|||||||
* @return {module:crypto/algorithms/megolm.OutboundSessionInfo} session
|
* @return {module:crypto/algorithms/megolm.OutboundSessionInfo} session
|
||||||
*/
|
*/
|
||||||
MegolmEncryption.prototype._prepareNewSession = function() {
|
MegolmEncryption.prototype._prepareNewSession = function() {
|
||||||
const session_id = this._olmDevice.createOutboundGroupSession();
|
const sessionId = this._olmDevice.createOutboundGroupSession();
|
||||||
const key = this._olmDevice.getOutboundGroupSessionKey(session_id);
|
const key = this._olmDevice.getOutboundGroupSessionKey(sessionId);
|
||||||
|
|
||||||
this._olmDevice.addInboundGroupSession(
|
this._olmDevice.addInboundGroupSession(
|
||||||
this._roomId, this._olmDevice.deviceCurve25519Key, session_id,
|
this._roomId, this._olmDevice.deviceCurve25519Key, sessionId,
|
||||||
key.key, {ed25519: this._olmDevice.deviceEd25519Key},
|
key.key, {ed25519: this._olmDevice.deviceEd25519Key},
|
||||||
);
|
);
|
||||||
|
|
||||||
return new OutboundSessionInfo(session_id);
|
return new OutboundSessionInfo(sessionId);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user