1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-18 05:42:00 +03:00

Fixed Jenkins tests complaints

This commit is contained in:
manuroe
2016-01-11 17:12:28 +01:00
parent 5c59a2ea3e
commit c10218a1fa

View File

@@ -2231,12 +2231,15 @@ MatrixClient.prototype.deletePushRule = function(scope, kind, ruleId, callback)
* @return {module:client.Promise} Resolves: result object
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixClient.prototype.setPushRuleEnabled = function(scope, kind, ruleId, enabled, callback) {
MatrixClient.prototype.setPushRuleEnabled = function(scope, kind,
ruleId, enabled, callback) {
var path = utils.encodeUri("/pushrules/" + scope + "/$kind/$ruleId/enabled", {
$kind: kind,
$ruleId: ruleId
});
return this._http.authedRequest(callback, "PUT", path, undefined, enabled ? 'true' : 'false');
return this._http.authedRequest(
callback, "PUT", path, undefined, enabled ? 'true' : 'false'
);
};
/**