Don't show blank EventAsText tiles

healthdemo
David Baker 2015-08-14 10:30:14 +01:00
parent 001d1c50ef
commit 7a8537f3dc
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ module.exports = React.createClass({
render: function() {
var text = TextForEvent.textForEvent(this.props.mxEvent);
if (text == null || text.length == 0) return null;
var timestamp = this.props.last ? <MessageTimestamp ts={this.props.mxEvent.getTs()} /> : null;
return (
<div className="mx_MessageTile mx_MessageTile_notice">