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

move CANCELLED check deeper into aggregation path

This commit is contained in:
Bruno Windels
2019-06-13 12:12:02 +02:00
parent 2a0c85c772
commit 6059df1b67
2 changed files with 3 additions and 5 deletions

View File

@@ -1356,10 +1356,7 @@ Room.prototype._revertRedactionLocalEcho = function(redactionEvent) {
// re-render after undoing redaction
this.emit("Room.redactionCancelled", redactionEvent, this);
// reapply relation now redaction failed
if (
redactedEvent.isRelation() &&
redactedEvent.status !== EventStatus.CANCELLED
) {
if (redactedEvent.isRelation()) {
this._aggregateNonLiveRelation(redactedEvent);
}
}