From db94a93fde9933616a5f07327b7d1be5fdb0748f Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 18 Jul 2015 19:06:26 +0100 Subject: [PATCH] hide events with no text equiv --- skins/base/views/molecules/MRoomMemberTile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skins/base/views/molecules/MRoomMemberTile.js b/skins/base/views/molecules/MRoomMemberTile.js index 41923e7e..3ca14283 100644 --- a/skins/base/views/molecules/MRoomMemberTile.js +++ b/skins/base/views/molecules/MRoomMemberTile.js @@ -36,7 +36,8 @@ module.exports = React.createClass({ render: function() { // XXX: for now, just cheekily borrow the css from message tile... var timestamp = this.props.last ? : null; - + var text = this.getMemberEventText(); + if (!text) return
; return (
@@ -45,7 +46,7 @@ module.exports = React.createClass({ { timestamp } - {this.getMemberEventText()} + { text }
);