Start to show redacted events
This commit is contained in:
parent
1bdf213d67
commit
2bd9885288
4 changed files with 20 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue