diff --git a/src/components/views/avatars/BaseAvatar.js b/src/components/views/avatars/BaseAvatar.js
index 0472b1c651..7291d42bdc 100644
--- a/src/components/views/avatars/BaseAvatar.js
+++ b/src/components/views/avatars/BaseAvatar.js
@@ -23,9 +23,9 @@ module.exports = React.createClass({
displayName: 'BaseAvatar',
propTypes: {
- name: React.PropTypes.string.isRequired,
+ name: React.PropTypes.string.isRequired, // The name (first initial used as default)
idName: React.PropTypes.string, // ID for generating hash colours
- title: React.PropTypes.string,
+ title: React.PropTypes.string, // onHover title text
url: React.PropTypes.string, // highest priority of them all
urls: React.PropTypes.array, // [highest_priority, ... , lowest_priority]
width: React.PropTypes.number,
@@ -95,7 +95,7 @@ module.exports = React.createClass({
_getInitialLetter: function() {
var name = this.props.name;
var initial = name[0];
- if (initial === '@' && name[1]) {
+ if ((initial === '@' || initial === '#') && name[1]) {
initial = name[1];
}
return initial.toUpperCase();
@@ -107,21 +107,21 @@ module.exports = React.createClass({
if (this.state.imageUrl === this.state.defaultImageUrl) {
var initialLetter = this._getInitialLetter();
return (
-
-
-
-
-
- );
- }
- else {
- return
);
}
return (
-
- }
+ var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
+ return (
+