diff --git a/src/components/views/rooms/ReplyTile.tsx b/src/components/views/rooms/ReplyTile.tsx index fdd43e3200..fd90d2d536 100644 --- a/src/components/views/rooms/ReplyTile.tsx +++ b/src/components/views/rooms/ReplyTile.tsx @@ -45,6 +45,7 @@ export default class ReplyTile extends React.PureComponent { componentDidMount() { this.props.mxEvent.on("Event.decrypted", this.onDecrypted); + this.props.mxEvent.on("Event.beforeRedaction", this.onBeforeRedaction); } componentWillUnmount() { @@ -58,6 +59,11 @@ export default class ReplyTile extends React.PureComponent { } }; + private onBeforeRedaction = (): void => { + // When the event gets redacted, update it, so that a different tile handler is used + this.forceUpdate(); + }; + private onClick = (e: React.MouseEvent): void => { // This allows the permalink to be opened in a new tab/window or copied as // matrix.to, but also for it to enable routing within Riot when clicked.