Fix exception when accepting room invites

healthdemo
David Baker 2015-08-20 11:39:28 +01:00
parent 8a24f9fd9f
commit 5955c4b583
1 changed files with 2 additions and 1 deletions

View File

@ -34,10 +34,11 @@ module.exports = React.createClass({
if (text == null || text.length == 0) return null;
var timestamp = this.props.last ? <MessageTimestamp ts={this.props.mxEvent.getTs()} /> : null;
var avatar = this.props.mxEvent.sender ? <MemberAvatar member={this.props.mxEvent.sender} /> : null;
return (
<div className="mx_MessageTile mx_MessageTile_notice">
<div className="mx_MessageTile_avatar">
<MemberAvatar member={this.props.mxEvent.sender} />
{ avatar }
</div>
{ timestamp }
<span className="mx_SenderProfile"></span>