You've already forked matrix-js-sdk
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:
@@ -692,6 +692,7 @@ utils.extend(module.exports.MatrixEvent.prototype, {
|
|||||||
}
|
}
|
||||||
this.event.unsigned.redacted_because = redactionEvent.event;
|
this.event.unsigned.redacted_because = redactionEvent.event;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the content of an event in the same way it would be by the server
|
* 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
|
* 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
|
* @return {boolean} True if this event has been redacted
|
||||||
*/
|
*/
|
||||||
isRedacted: function() {
|
isRedacted: function() {
|
||||||
return this._locallyRedacted || Boolean(this.getUnsigned().redacted_because);
|
return Boolean(this.getUnsigned().redacted_because);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user