Merge pull request #426 from matrix-org/wmwragg/chat-message-presentation

Added event/info message avatars back in
pull/21833/head
Matthew Hodgson 2016-08-23 17:14:11 +01:00 committed by GitHub
commit 08c0d7e298
1 changed files with 7 additions and 1 deletions

View File

@ -403,7 +403,13 @@ module.exports = React.createClass({
var readAvatars = this.getReadAvatars();
var avatar, sender;
if (!this.props.continuation && !isInfoMessage) {
if (isInfoMessage) {
avatar = (
<div className="mx_EventTile_avatar">
<MemberAvatar member={this.props.mxEvent.sender} width={14} height={14} onClick={ this.onMemberAvatarClick } />
</div>
);
} else if (!this.props.continuation) {
if (this.props.mxEvent.sender) {
avatar = (
<div className="mx_EventTile_avatar">