No text required, do not continuate after redacted even

It's curious, however, that a continuation occured after a redacted event, given that the event shouldn't have a sender
This commit is contained in:
Luke Barnard 2017-03-06 10:26:26 +00:00
parent abd71cd2ac
commit edccfeb20b
2 changed files with 4 additions and 6 deletions

View file

@ -22,11 +22,7 @@ module.exports = React.createClass({
displayName: 'UnknownBody',
render: function() {
const ev = this.props.mxEvent;
var text = ev.getContent().body;
if (ev.isRedacted()) {
text = "This event was redacted";
}
const text = this.props.mxEvent.getContent().body;
return (
<span className="mx_UnknownBody">
{text}