From 4f22610499a7463342dfa74a12c9cfa6941ad10c Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Sun, 18 Sep 2016 13:52:48 +0100 Subject: [PATCH] Megolm: clarify jsdoc Clarify somewhat misleading jsdoc text --- lib/crypto/algorithms/megolm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/crypto/algorithms/megolm.js b/lib/crypto/algorithms/megolm.js index 695cb615d..b156d5d59 100644 --- a/lib/crypto/algorithms/megolm.js +++ b/lib/crypto/algorithms/megolm.js @@ -171,9 +171,9 @@ MegolmEncryption.prototype._prepareNewSession = function(room) { * @param {string} session_id * * @param {Object|boolean>} shareMap - * Map from userid to true (meaning this is a new user in the room, so all - * of his devices need the keys), or a map from deviceid to true (meaning - * this user has one or more new devices, which need the keys). + * Map from userid to either: true (meaning this is a new user in the room, + * so all of his devices need the keys); or a map from deviceid to true + * (meaning this user has one or more new devices, which need the keys). * * @return {module:client.Promise} Promise which resolves once the key sharing * message has been sent.