From 2351ad997c78edb8e2d8df33ecf1b3800ec19bfe Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 20 Aug 2015 11:46:54 +0100 Subject: [PATCH] More places where we assumed sender would not be null --- skins/base/views/molecules/MessageTile.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/skins/base/views/molecules/MessageTile.js b/skins/base/views/molecules/MessageTile.js index 458de3c9..ac6342ac 100644 --- a/skins/base/views/molecules/MessageTile.js +++ b/skins/base/views/molecules/MessageTile.js @@ -69,11 +69,13 @@ module.exports = React.createClass({ var avatar, sender, resend; if (!this.props.continuation) { - avatar = ( -
- -
- ); + if (this.props.mxEvent.sender) { + avatar = ( +
+ +
+ ); + } sender = ; } if (this.props.mxEvent.status === "not_sent" && !this.state.resending) {