1
0
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:
Bruno Windels
2019-05-15 13:56:13 +01:00
parent 600dff62e8
commit a18bdad44f

View File

@@ -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;
},