You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
remove unused method
This commit is contained in:
@@ -887,32 +887,6 @@ MatrixBaseApis.prototype.sendStateEvent = function(roomId, eventType, content, s
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} roomId
|
|
||||||
* @param {string} eventId
|
|
||||||
* @param {string} [txnId] transaction id. One will be made up if not
|
|
||||||
* supplied.
|
|
||||||
* @param {module:client.callback} callback Optional.
|
|
||||||
* @return {module:client.Promise} Resolves: TODO
|
|
||||||
* @return {module:http-api.MatrixError} Rejects: with an error response.
|
|
||||||
*/
|
|
||||||
MatrixBaseApis.prototype.sendRedaction = function(
|
|
||||||
roomId, eventId, txnId, callback,
|
|
||||||
) {
|
|
||||||
if (arguments.length === 3) {
|
|
||||||
callback = txnId;
|
|
||||||
}
|
|
||||||
|
|
||||||
const path = utils.encodeUri("/rooms/$roomId/redact/$eventId/$txnId", {
|
|
||||||
$roomId: roomId,
|
|
||||||
$eventId: eventId,
|
|
||||||
$txnId: txnId ? txnId : this.makeTxnId(),
|
|
||||||
});
|
|
||||||
|
|
||||||
return this._http.authedRequest(callback, "PUT", path, undefined, {});
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} roomId
|
* @param {string} roomId
|
||||||
* @param {Number} limit
|
* @param {Number} limit
|
||||||
|
|||||||
Reference in New Issue
Block a user