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

unneeded check, as redacted_because is now also set for local echo

This commit is contained in:
Bruno Windels
2019-06-04 15:49:52 +02:00
parent b5df016b1b
commit b83c7d3929

View File

@@ -692,6 +692,7 @@ utils.extend(module.exports.MatrixEvent.prototype, {
}
this.event.unsigned.redacted_because = redactionEvent.event;
},
/**
* Update the content of an event in the same way it would be by the server
* if it were redacted before it was sent to us
@@ -749,7 +750,7 @@ utils.extend(module.exports.MatrixEvent.prototype, {
* @return {boolean} True if this event has been redacted
*/
isRedacted: function() {
return this._locallyRedacted || Boolean(this.getUnsigned().redacted_because);
return Boolean(this.getUnsigned().redacted_because);
},
/**