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

Fix spelling error in txnId for redactions

Fixes https://github.com/vector-im/riot-web/issues/9700
This commit is contained in:
Travis Ralston
2019-05-13 13:43:44 -06:00
parent 6a5f5b249e
commit 09438b440e

View File

@@ -904,7 +904,7 @@ MatrixBaseApis.prototype.redactEvent = function(
callback = txnId; callback = txnId;
} }
const path = utils.encodeUri("/rooms/$roomId/redact/$eventId/$tnxId", { const path = utils.encodeUri("/rooms/$roomId/redact/$eventId/$txnId", {
$roomId: roomId, $roomId: roomId,
$eventId: eventId, $eventId: eventId,
$txnId: txnId ? txnId : this.makeTxnId(), $txnId: txnId ? txnId : this.makeTxnId(),