Only show a redaction tile for messages

This commit is contained in:
Luke Barnard 2017-03-03 16:45:29 +00:00
parent 6c32e3720b
commit 5ef61b7c35
3 changed files with 12 additions and 8 deletions

View file

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