Improve the Group View page

Show the rooms in the group in thir various categories, etc
This commit is contained in:
David Baker 2017-07-06 19:13:14 +01:00
parent 3b06db0725
commit fa37d03db6
3 changed files with 124 additions and 4 deletions

View file

@ -126,9 +126,16 @@ module.exports = React.createClass({
},
getFallbackAvatar: function(props) {
if (!this.props.room) return null;
let roomId = null;
if (props.oobData && props.oobData.roomId) {
roomId = this.props.oobData.roomId;
} else if (props.room) {
roomId = props.room.roomId;
} else {
return null;
}
return Avatar.defaultAvatarUrlForString(props.room.roomId);
return Avatar.defaultAvatarUrlForString(roomId);
},
render: function() {