You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-10 07:22:27 +03:00
dont replace a redacted event
This commit is contained in:
@@ -761,6 +761,9 @@ utils.extend(module.exports.MatrixEvent.prototype, {
|
||||
* @param {MatrixEvent} newEvent the event with the replacing content.
|
||||
*/
|
||||
makeReplaced(newEvent) {
|
||||
if (this.isRedacted()) {
|
||||
return;
|
||||
}
|
||||
this._replacingEvent = newEvent;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user