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

Address Kegan's review comments

jsdoc mostly.
This commit is contained in:
Richard van der Hoff
2017-05-31 16:05:00 +01:00
parent 4c7afe5af0
commit 716d098361
3 changed files with 14 additions and 2 deletions

View File

@@ -104,6 +104,9 @@ try {
* disabled by default for compatibility with older clients - in particular to
* maintain support for back-paginating the live timeline after a '/sync'
* result with a gap.
*
* @param {module:crypto.store.base~CryptoStore} opts.cryptoStore
* crypto store implementation.
*/
function MatrixClient(opts) {
MatrixBaseApis.call(this, opts);
@@ -154,6 +157,7 @@ function MatrixClient(opts) {
this._crypto = null;
if (CRYPTO_ENABLED && Boolean(opts.sessionStore) &&
Boolean(opts.cryptoStore) &&
userId !== null && this.deviceId !== null) {
this._crypto = new Crypto(
this, this,