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

@ -246,10 +246,6 @@ module.exports = React.createClass({
var mxEvent = this.props.mxEvent;
var content = mxEvent.getContent();
if (mxEvent.isRedacted()) {
content = {body: "Message redacted by " + mxEvent.event.redacted_because.sender};
}
var body = HtmlUtils.bodyToHtml(content, this.props.highlights, {});
if (this.props.highlightLink) {