Start to show redacted events

This commit is contained in:
Luke Barnard 2017-03-03 15:42:24 +00:00
parent 1bdf213d67
commit 2bd9885288
4 changed files with 20 additions and 7 deletions

View file

@ -246,6 +246,10 @@ 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) {