Don't show blank EventAsText tiles

This commit is contained in:
David Baker 2015-08-14 10:30:14 +01:00
parent 001d1c50ef
commit 7a8537f3dc

View File

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