Only show a redaction tile for messages
This commit is contained in:
parent
6c32e3720b
commit
5ef61b7c35
3 changed files with 12 additions and 8 deletions
|
@ -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>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue