From 7a8537f3dcadf02d26a946330b025fef752b702c Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 14 Aug 2015 10:30:14 +0100 Subject: [PATCH] Don't show blank EventAsText tiles --- skins/base/views/molecules/EventAsTextTile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skins/base/views/molecules/EventAsTextTile.js b/skins/base/views/molecules/EventAsTextTile.js index bc585b816..4c04135f4 100644 --- a/skins/base/views/molecules/EventAsTextTile.js +++ b/skins/base/views/molecules/EventAsTextTile.js @@ -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 ? : null; return (