Show the room avatar for invites

This changes to the room avatar instead of the inviter's avatar.
pull/21833/head
J. Ryan Stinnett 2019-04-30 09:30:36 +01:00
parent e71896420e
commit b7642b38a7
1 changed files with 3 additions and 3 deletions

View File

@ -334,12 +334,12 @@ module.exports = React.createClass({
break; break;
} }
case MessageCase.Invite: { case MessageCase.Invite: {
const RoomAvatar = sdk.getComponent("views.avatars.RoomAvatar");
const avatar = <RoomAvatar room={this.props.room} />;
const inviteMember = this._getInviteMember(); const inviteMember = this._getInviteMember();
let avatar;
let inviterElement; let inviterElement;
if (inviteMember) { if (inviteMember) {
const MemberAvatar = sdk.getComponent("views.avatars.MemberAvatar");
avatar = (<MemberAvatar member={inviteMember} />);
inviterElement = <span> inviterElement = <span>
<span className="mx_RoomPreviewBar_inviter"> <span className="mx_RoomPreviewBar_inviter">
{inviteMember.rawDisplayName} {inviteMember.rawDisplayName}