1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

make redactEvent go through same local-echo aware path as other events

This commit is contained in:
Bruno Windels
2019-06-03 18:37:25 +02:00
parent 2eecea9a07
commit 8194287391
2 changed files with 46 additions and 10 deletions

View File

@@ -896,7 +896,7 @@ MatrixBaseApis.prototype.sendStateEvent = function(roomId, eventType, content, s
* @return {module:client.Promise} Resolves: TODO
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixBaseApis.prototype.redactEvent = function(
MatrixBaseApis.prototype.sendRedaction = function(
roomId, eventId, txnId, callback,
) {
if (arguments.length === 3) {