diff --git a/lib/base-apis.js b/lib/base-apis.js index 7a93c9414..497859a91 100644 --- a/lib/base-apis.js +++ b/lib/base-apis.js @@ -122,7 +122,7 @@ MatrixBaseApis.prototype.loginFlows = function(callback) { * @param {module:client.callback} callback Optional. * @return {module:client.Promise} Resolves: On success, the empty object */ -MatrixClient.prototype.logout = function(callback) { +MatrixBaseApis.prototype.logout = function(callback) { return this._http.authedRequest( callback, "POST", '/logout' );