You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Only show a redaction tile for messages
This commit is contained in:
@@ -22,10 +22,13 @@ module.exports = React.createClass({
|
||||
displayName: 'UnknownBody',
|
||||
|
||||
render: function() {
|
||||
var content = this.props.mxEvent.getContent();
|
||||
var text = this.props.mxEvent.getContent().body;
|
||||
if (this.props.mxEvent.isRedacted()) {
|
||||
text = "This event was redacted";
|
||||
}
|
||||
return (
|
||||
<span className="mx_UnknownBody">
|
||||
{content.body}
|
||||
{text}
|
||||
</span>
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user