You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-11 19:37:30 +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.
|
* @param {MatrixEvent} newEvent the event with the replacing content.
|
||||||
*/
|
*/
|
||||||
makeReplaced(newEvent) {
|
makeReplaced(newEvent) {
|
||||||
|
if (this.isRedacted()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this._replacingEvent = newEvent;
|
this._replacingEvent = newEvent;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user