Fix timestamp hovers #59

This commit is contained in:
Kegan Dougal 2015-10-21 15:05:17 +01:00
parent 7142ea8f1e
commit 80277583db
1 changed files with 6 additions and 2 deletions

View File

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