From ae3551ad785babd13ef455a459b6a9957df22815 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 22 Jun 2016 14:27:54 +0100 Subject: [PATCH 1/2] Clearer doc for setRoomDirectoryVisibility --- lib/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 139b3b7c6..ff202eca4 100644 --- a/lib/client.js +++ b/lib/client.js @@ -2186,7 +2186,8 @@ MatrixClient.prototype.getRoomDirectoryVisibility = /** * Set the visbility of a room in the current HS's room directory * @param {string} roomId - * @param {string} visibility + * @param {string} "public" to make the room visible in the public directory, + * or "private" to make it invisible. * @param {module:client.callback} callback Optional. * @return {module:client.Promise} Resolves: result object * @return {module:http-api.MatrixError} Rejects: with an error response. From 1556cc447991d2a8f15af609a1d32fd334bb8d00 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 22 Jun 2016 16:17:51 +0100 Subject: [PATCH 2/2] Oops, include the param name --- lib/client.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/client.js b/lib/client.js index ff202eca4..f7e1a1da6 100644 --- a/lib/client.js +++ b/lib/client.js @@ -2186,8 +2186,9 @@ MatrixClient.prototype.getRoomDirectoryVisibility = /** * Set the visbility of a room in the current HS's room directory * @param {string} roomId - * @param {string} "public" to make the room visible in the public directory, - * or "private" to make it invisible. + * @param {string} visibility "public" to make the room visible + * in the public directory, or "private" to make + * it invisible. * @param {module:client.callback} callback Optional. * @return {module:client.Promise} Resolves: result object * @return {module:http-api.MatrixError} Rejects: with an error response.