diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 1564efd8d3..fa75df53f0 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -884,6 +884,7 @@ export default React.createClass({ } else { const GroupAvatar = sdk.getComponent('avatars.GroupAvatar'); avatarImage = ; @@ -928,9 +929,11 @@ export default React.createClass({ dir="auto" />; } else { const groupAvatarUrl = summary.profile ? summary.profile.avatar_url : null; + const groupName = summary.profile ? summary.profile.name : null; avatarNode = ; diff --git a/src/components/views/avatars/GroupAvatar.js b/src/components/views/avatars/GroupAvatar.js index 3b716f02e1..4f34cc2c16 100644 --- a/src/components/views/avatars/GroupAvatar.js +++ b/src/components/views/avatars/GroupAvatar.js @@ -24,6 +24,7 @@ export default React.createClass({ propTypes: { groupId: PropTypes.string, + groupName: PropTypes.string, groupAvatarUrl: PropTypes.string, width: PropTypes.number, height: PropTypes.number, @@ -57,7 +58,7 @@ export default React.createClass({ return (