diff --git a/src/client.js b/src/client.js index 1956b9225..77d62c6f0 100644 --- a/src/client.js +++ b/src/client.js @@ -968,7 +968,8 @@ MatrixClient.prototype.joinRoom = function(roomIdOrAlias, opts, callback) { } const path = utils.encodeUri("/join/$roomid", { $roomid: roomIdOrAlias}); - return self._http.authedRequest(undefined, "POST", path, queryString, data, reqOpts); + return self._http.authedRequest( + undefined, "POST", path, queryString, data, reqOpts); }).then(function(res) { const roomId = res.room_id; const syncApi = new SyncApi(self, self._clientOpts); diff --git a/src/http-api.js b/src/http-api.js index 65521df69..c29250d2a 100644 --- a/src/http-api.js +++ b/src/http-api.js @@ -668,9 +668,6 @@ module.exports.MatrixHttpApi.prototype = { * @param {function=} opts.bodyParser function to parse the body of the * response before passing it to the promise and callback. * - * @param (object=} opts.qsStringifyOptions options for stringifying the - * query string. - * * @return {module:client.Promise} a promise which resolves to either the * response object (if this.opts.onlyData is truthy), or the parsed * body. Rejects