diff --git a/lib/client.js b/lib/client.js index 8a78131e1..903106bf4 100644 --- a/lib/client.js +++ b/lib/client.js @@ -908,7 +908,7 @@ MatrixClient.prototype.getStateEvent = function(roomId, eventType, stateKey, cal * @return {module:client.Promise} Resolves: TODO * @return {module:http-api.MatrixError} Rejects: with an error response. */ -MatrixClient.prototype.sendStateEvent = function(roomId, eventType, content, stateKey, +MatrixClient.prototype.sendStateEvent = function(roomId, eventType, content, stateKey, callback) { var pathParams = { $roomId: roomId, @@ -1729,7 +1729,7 @@ MatrixClient.prototype.kick = function(roomId, userId, reason, callback) { * @return {module:client.Promise} Resolves: TODO * @return {module:http-api.MatrixError} Rejects: with an error response. */ -function _setMembershipState(client, roomId, userId, membershipValue, reason, +function _setMembershipState(client, roomId, userId, membershipValue, reason, callback) { if (utils.isFunction(reason)) { callback = reason; reason = undefined; }