Skip to content

Commit

Permalink
Merge pull request #8210 from RocketChat/fix-avatar
Browse files Browse the repository at this point in the history
[FIX] User avatar in DM list.
  • Loading branch information
rodrigok authored Sep 19, 2017
2 parents e20195a + 9f595d2 commit 9fc4540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/rocketchat-ui-sidenav/client/chatRoomItem.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Template.chatRoomItem.helpers({
roomData() {
let name = this.name;
let {name} = this;
const realNameForDirectMessages = RocketChat.settings.get('UI_Use_Real_Name') && this.t === 'd';
const realNameForChannel = RocketChat.settings.get('UI_Allow_room_names_with_special_chars') && this.t !== 'd';
if ((realNameForDirectMessages || realNameForChannel) && this.fname) {
Expand Down Expand Up @@ -31,6 +31,7 @@ Template.chatRoomItem.helpers({
...this,
icon,
avatar,
username : this.name,
route: RocketChat.roomTypes.getRouteLink(this.t, this),
name,
unread,
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-sidenav/client/sidebarItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{else}}
{{#if avatar}}
<div class="sidebar-item__user-thumb">
{{> avatar username=name}}
{{> avatar username=username}}
</div>
{{/if}}
{{/if}}
Expand Down

0 comments on commit 9fc4540

Please sign in to comment.