Show the room avatar for invites
This changes to the room avatar instead of the inviter's avatar.pull/21833/head
parent
e71896420e
commit
b7642b38a7
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue