Fix exception when accepting room invites

This commit is contained in:
David Baker 2015-08-20 11:43:08 +01:00
parent 25a4f1fde0
commit cb25740961
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>