diff --git a/components/chat.js b/components/chat.js index 2d8c6ad..f728304 100644 --- a/components/chat.js +++ b/components/chat.js @@ -7,7 +7,7 @@ const debounce = require('debounce') const jdenticon = require('jdenticon') const defaultValue = require('default-value') -const Event = require('./events/Event.js') +const Event = require('./events/Event.js') jdenticon.config = { lightness: { @@ -132,7 +132,7 @@ let EventGroup = create({ return }) return
- +
{this.state.user.displayName}
{events} diff --git a/components/sidebar.js b/components/sidebar.js index 7d44d69..dc9c3cb 100644 --- a/components/sidebar.js +++ b/components/sidebar.js @@ -18,8 +18,8 @@ let RoomListItem = create({ } }, - componentDidMount() { - jdenticon.update("svg") + avatarRef: function(ref) { + jdenticon.update(ref, this.props.content.roomId) }, setRef: function(ref) { @@ -42,7 +42,7 @@ let RoomListItem = create({ className += " unread" } return
- + {this.props.content.name}
}