You've already forked matrix-js-sdk
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:
@@ -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'
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user